An Azure machine learning service for building and deploying models.
Welcome to Microsoft Q&A
Hello @rain purple , I hope you are doing well.
Since Workspace Diagnostics reports no issues but you're intermittently receiving:
"You are attempting to access a restricted resource from an unauthorized network location."
the issue is most likely related to network connectivity or DNS resolution rather than the Azure Machine Learning workspace itself.
Based on your latest findings, I recommend checking the following:
- Verify that the client and the Machine Learning compute resource consistently resolve the workspace private endpoint FQDNs to their private IP addresses using
nslookup. - If you're using custom DNS, ensure that:
- Conditional forwarders are correctly configured.
- The Private DNS Zones are properly linked to the virtual network.
- The DNS server can resolve Azure Private Link records correctly.
- If you're using Azure-provided DNS, verify that the Private Endpoint has an associated DNS Zone Group and that the required Private DNS Zones are linked to the virtual network.
- Review any Network Security Groups (NSGs), User Defined Routes (UDRs), or Azure Firewall rules to ensure they are not intermittently blocking DNS (TCP/UDP 53) or connectivity to the private endpoint.
- If the issue only occurs from certain networks or client machines, compare the DNS resolution and routing results between a working and a failing client to identify configuration differences.
- The Private DNS Zones are properly linked to the virtual network.
- Conditional forwarders are correctly configured.
The fact that the problem is intermittent usually indicates inconsistent DNS resolution or differences in the network path, rather than a problem with the Azure Machine Learning workspace itself.
References
- Azure Machine Learning with custom DNS: https://learn.microsoft.com/azure/machine-learning/how-to-custom-dns
- Troubleshoot Azure Machine Learning private endpoints: https://learn.microsoft.com/azure/machine-learning/how-to-troubleshoot-secure-connection-workspace
- Azure Private Endpoint DNS configuration: https://learn.microsoft.com/azure/private-link/private-endpoint-dns
If my answer helped you, please consider marking it as accepted. This helps others in the community find similar solutions.This helps others in the community find similar solutions.