This Python script queries an AzureML resource to determine the storage account, the KeyVault, and the Azure Container Registry associated to the resource. It then generates the DNS names associated with each of the resources and resolves them via DNS to determine if they are being resolved as public addresses (Internet-facing) or private addresses (Private Endpoint implementations). Finally, it will output a series of nslookup commands that can be copied and pasted into terminals on machines that may be having trouble accesses the AzureML resource.
This has been tested on Python 3.9.13 with the following modules:
- azure-cli
- tabulate
- argparse
python check-dns-configuration.py -s SUBSCRIPTIONGUID -g RESOURCEGROUPNAME -n AZUREMLRESOURCENAME