Application Insights - AMPLS DNS Resolution
I have an anomaly when using AMPLS and Application Insights. I have a standard hybrid setup consists of:
- On-premises DCs
- Azure DCs
- Hub Spoke Vnet
- Azure Private DNS Zones
If I provide Application insights via AMPLS, the connection string copied from the portal without any changes are not working.
InstrumentationKey=XXXXXXXXXXXXXXXXXXXXXXXXXXXX;IngestionEndpoint=https://germanywestcentral1.in.applicationinsights.azure.com/;LiveEndpoint=https://germanywestcentral.livediagnostics.monitor.azure.com/;ApplicationId=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
The Record germanywestcentral-1.in.applicationinsights.azure.com cannot be resolved internally, there is no conditional forwarder / Azure Private DNS Zone for this zone. In this documation I found the public global Endpoint https://learn.microsoft.com/en-us/azure/azure-monitor/ip-addresses for the Ingestion. I changed the record to the global endpoint dc.applicationinsights.azure.com. It seams to be there is an internal Azure resolution from dc.applicationinsights.azure.com to CNAME global.in.ai.privatelink.monitor.azure.com. As the result the connection string works fine. In this case, who hosts the applicationinsights.azure.com zone and the CNAME within it?
When I ask Azure DNS directly I will receive the same information. So I guess that's where the magic happens.
germanywestcentral1.in.applicationinsights.azure.com --> Non-existent domain
dc.applicationinsights.azure.com --> CNAME privatelink.monitor.azure.com --> AMPLS Private Endpoint IP
When I read the private Endpoint DNS Zones followed by this documentation, in the past was here a conditional forwarder for applicationinsights.azure.com, but now there isn´t.
https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns
Means the table I need a additional Conditional Forwarder on my DCs for the Zones services.visualstudio.com and applicationinsights.azure.com to 168.63.129.16?
Private link resource typeSubresourcePrivate DNS zone namePublic DNS zone forwardersmAzure Monitor (Microsoft.Insights/privateLinkScopes)azuremonitorprivatelink.monitor.azure.com privatelink.oms.opinsights.azure.com privatelink.ods.opinsights.azure.com privatelink.agentsvc.azure-automation.net privatelink.blob.core.windows.netmonitor.azure.com oms.opinsights.azure.com ods.opinsights.azure.com agentsvc.azure-automation.net blob.core.windows.net services.visualstudio.com applicationinsights.azure.comThe Zones applicationinsights.azure.com and services.visualstudio.com are not part of any documentation about AMPLS. https://learn.microsoft.com/en-us/azure/azure-monitor/logs/private-link-configure
How does the magic happends and why it only works with the global Ingestion Endpoint and not with the regional? Can anyone confirm the configuration and how it works in their environment?
Thanks.