Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Azure Private DNS policies with Azure AI services
We implemented automatic registration of DNS records of Azure Private Links as recommended by Azure https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/private-link-and-dns-integration-at-scale.
This works great for most cases, but Azure AI Services. Let's say I create Azure AI Foundry (the same case will be for Azure OpenAI Instance). During or upon creation, I can create a Private Endpoint. This private endpoint is always a subresource of type "account", and if you use the Azure Portal, it will offer an integration with the Azure Private DNS Zone "privatelink.aiservices.azure.com". The Private Endpoint itself will have a Network Interface with three IPs:
privateEndpointIpConfig.abcdef123456
IPv4
Primary
10.0.0.1 (Dynamic)
-
privateEndpointIpConfig.ghijkl123456
IPv4
Secondary
10.0.0.2 (Dynamic)
-
privateEndpointIpConfig.mnopqr123456
IPv4
Secondary
10.0.0.3 (Dynamic)
DNS configuration of the PE will then show three different records:
Customer Visible FQDNs for the Network Interface:
10.0.0.1
test-ai-foundry-00001.cognitiveservices.azure.com
10.0.0.2
test-ai-foundry-00001.openai.azure.com
10.0.0.3
test-ai-foundry-00001.services.ai.azure.com
And Azure Private DNS Zone will have the following record:
10.0.0.1 test-ai-foundry-00001.privatelink.aiservices.azure.com
The A-record provided by Azure Private DNS Zone does not work for accessing the AI Foundry via its private endpoint. Instead, the AI Foundry uses services.ai.azure.com.
My question: How can I use Azure policies from the initial link to automatically add a correct DNS record in the Private DNS Zone? When is which zone used? And why is aiservices.azure.com, created automatically during PE creation, not in the list of DNS zones for Azure AI Services?
Private DNS zone domains for AI Services:
Azure AI services (Microsoft.CognitiveServices/accounts)accountprivatelink.cognitiveservices.azure.com privatelink.openai.azure.com privatelink.services.ai.azure.comcognitiveservices.azure.com openai.azure.com services.ai.azure.com