Intune integration issue - compliance checking failed

New Contributor

We use JAMF pro 10.10.1. In company external network, this network with full security control, when we setup JAMF integrated with Intune, all good, we can see Mac registered into Azur AD, company portal installed success, but compliance checking is failed. but after we connect this Mac to internet and use VPN connect back to the company, compliance checking success.
So is what specific traffic need to permit in firewall?
Because company network have proxy, only APNs traffic is unproxyed, others internet traffic by default will go through proxy, so if any specific traffic need to be bypass proxy?
Or any suggestion for this? Thanks