An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Hi Boryslav,
I'll answer the Azure side, which is where I work every day; someone with more AWS mileage can compare the other half better.
On Azure, the model that scales across many subscriptions is the one in the Cloud Adoption Framework guidance "Private Link and DNS integration at scale". The key is that app teams never touch DNS:
- One set of
privatelink.*zones, central. They live in the connectivity subscription. A zone can be linked to VNets in other subscriptions, so you don't need per-subscription zones. - Spokes resolve through the hub. Spoke VNets use custom DNS pointing to the hub (DNS Private Resolver inbound endpoint, or Azure Firewall DNS proxy if you need FQDNs in network rules). The resolver forwards to 168.63.129.16, and the zones are linked where that resolution happens.
- Azure Policy does the work, not people.
- A
Denypolicy for creating zones whose name containsprivatelink.in the landing zone subscriptions. This avoids the classic problem: a team creates its ownprivatelink.blob.core.windows.net, it shadows the central one and resolution breaks for some VNets. - A
DeployIfNotExistspolicy that adds theprivateDnsZoneGroupon every private endpoint, pointing to the central zone. The record is created automatically and removed when the PE is deleted. - Detail that usually bites: the policy's managed identity needs Private DNS Zone Contributor on the subscription/RG where the central zones live. Without it, remediation fails.
- A
- A spoke that needs its own local private endpoint: same pattern. The PE is created in the spoke, but the record goes to the central zone through the zone group. Don't create another zone with the same name in the spoke: a VNet can't be linked to two zones with the same name, and multiple zones with the same name mean merging records by hand.
- On-premises: conditional forwarders on your on-prem DNS to the hub resolver, for the public zone (for example
database.windows.net), not forprivatelink.database.windows.net. This is a very common mistake.
Where it hurts on Azure: the first setup (zones, links, policies, identity roles) takes work, and DNS zone groups have limits (up to five zones per group, only one zone per zone name, one group per PE). Once it's in place, it runs almost by itself.
Docs:
- Private Link and DNS integration at scale (CAF): https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/private-link-and-dns-integration-at-scale
- Private endpoint DNS integration scenarios: https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns-integration
Hope it helps!