It sounds like you might have some of the public endpoints blocked.
https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/scenarios/hybrid/arc-enabled-servers/eslz-arc-servers-connectivity
https://learn.microsoft.com/en-us/azure/azure-monitor/agents/agent-windows-troubleshoot