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