Hello aot,
Thank you for posting your question in the Microsoft Q&A forum.
When working with Azure Machine Learning (AML) workspaces configured with strict network security policies, users often encounter challenges accessing external resources required for model training. This situation becomes particularly apparent when attempting to download pretrained model weights from Microsoft-hosted repositories during AutoML workflows. The error message indicating a URL fetch failure with SSL protocol violations typically points to network restrictions blocking outbound connections to essential endpoints.
Few important things to keep in mind about keeping things secure while still making sure everything works properly. Right now, your workspace is set to "Allow only approved outbound" access, which means it needs specific permission for certain Microsoft services. The automatic setup does include most of the important connections, but it might miss some resources that AutoML needs - especially those coming from aka.ms links, which point to files stored in Azure Blob Storage.
To resolve this while preserving security, administrators should implement a multi-layered approach. The solution begins with expanding the workspace's outbound rules as below:
Allow Outbound Access to Microsoft Model Repositories
Add the following service tags to the workspace’s outbound rules:
- AzureActiveDirectory (for authentication).
- AzureResourceManager (for AML service dependencies).
- AzureFrontDoor.Frontend (for aka.ms redirections).
- Storage (for Blob Storage hosting model weights).
- FQDN Rules: Explicitly allow:
- *.aka.ms (redirects to Azure Storage).
- *.blob.core.windows.net (actual model storage).
- *.azureml.ms (AML-specific endpoints).
For compute clusters running the training jobs, network security groups must permit HTTPS traffic on port 443 to these endpoints. The system-assigned managed identity used by the cluster also requires proper role assignments, particularly Storage Blob Data Reader permissions on the workspace's default storage account. These configurations work together to create a secure but functional environment where AutoML can access necessary pretrained models while maintaining overall network security posture.
If outbound rules remain problematic, below are few alternate solutions you may try:
- Download Weights Offline: Manually download the model weights to your workspace’s default Blob Storage or a Datastore, then modify the AutoML code to use the local path.
- Use Azure Private Endpoints: If strict isolation is required, configure Private Endpoints for Azure Storage and AML services (though this may not resolve aka.ms access).
Some Microsoft refereence documentation may help:
- Secure workspace resources using virtual networks (VNets) - Azure Machine Learning | Microsoft Learn
- Announcing Azure Machine Learning managed network isolation | Microsoft Community Hub
If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated.