An app in your VNet can reach your own storage accounts, Key Vaults and SQL servers through private endpoints. It fails on a resource you don't own: a partner's storage account, another business unit's Key Vault, or a vendor's Event Hubs namespace. The error is a name resolution failure, not a 403. From the internet the same name resolves fine.
This happens because of how Private Link DNS works. When a resource has any private endpoint anywhere, in any tenant, public DNS changes its name to a CNAME into the privatelink subdomain. Your VNets are linked to your own privatelink.blob.core.windows.net zone, so Azure DNS answers the privatelink name from your zone. Your zone has no record for someone else's resource, so the answer is NXDOMAIN.
Symptom, cause and fix
| Symptom | Cause | Fix |
|---|---|---|
NXDOMAIN for x.privatelink.<service> from inside Azure; resolves from outside | Your linked privatelink zone has no A record for a resource that has a private endpoint elsewhere | Fallback to internet (NxDomainRedirect) on the link, or a private endpoint of your own |
| Only on-premises clients fail | On-premises forwards the zone to Azure DNS through a resolver whose VNet link has no fallback | Enable fallback on the resolver VNet's link |
| Resolves to a public IP, then 403 or timeout | Fallback works, but the resource's firewall blocks public access | Ask the owner to allow your egress IPs, or create a cross-tenant private endpoint they approve |
| Resolves to a private IP you don't recognise | Someone added a manual A record for this name in your zone | Remove it, or replace it with a real private endpoint |
| Works for some services and not others | Fallback applies only to privatelink zones and to A, AAAA and CNAME queries | Check which zone answers the failing name |
Step 1: prove the chain
Run the query from a VM in the affected VNet, then from outside Azure:
# Inside the VNet (uses 168.63.129.16)
nslookup partnerdata.blob.core.windows.net
dig +noall +answer +authority partnerdata.blob.core.windows.net
# Outside Azure, through a public resolver
dig @1.1.1.1 +noall +answer partnerdata.blob.core.windows.net
The pattern to look for inside the VNet:
partnerdata.blob.core.windows.net. CNAME partnerdata.privatelink.blob.core.windows.net.
privatelink.blob.core.windows.net. SOA azureprivatedns.net. ... <- NXDOMAIN from your zone
The public answer continues past privatelink to a public blob front-end. That proves the resource has a private endpoint somewhere and your zone is taking over the lookup.
Step 2: find the zone and links that answer
List which zones of that name exist, and which VNets link to them. In hub-and-spoke designs there is usually one zone in a connectivity subscription:
az graph query -q "
resources
| where type == 'microsoft.network/privatednszones'
| where name == 'privatelink.blob.core.windows.net'
| project name, resourceGroup, subscriptionId" -o table
az network private-dns link vnet list -g rg-dns -z privatelink.blob.core.windows.net \
--query "[].{link:name, vnet:virtualNetwork.id, policy:resolutionPolicy, state:virtualNetworkLinkState}" -o table
A policy value that is empty or Default means a missing record returns NXDOMAIN.
Confirm there is no record for the name:
az network private-dns record-set a show -g rg-dns -z privatelink.blob.core.windows.net -n partnerdata
Step 3: choose the fix
| Option | When to use it | Trade-off |
|---|---|---|
| Your own private endpoint to the partner resource | Data must stay private; the owner will approve a cross-tenant connection | The owner has to approve it; you manage the endpoint lifecycle |
NxDomainRedirect on the VNet link | Public access to the resource is acceptable and allowed by its firewall | Applies to every name missing from that zone through that link |
| Manual A record pointing at a public IP | Never | Breaks silently when the public front-end IP changes |
| Conditional forwarder for the single name | Legacy custom DNS servers you can't change yet | One more thing to keep in sync; easy to forget |
Option A: fallback to internet on the link
az network private-dns link vnet update -g rg-dns \
-z privatelink.blob.core.windows.net -n link-vnet-hub \
--resolution-policy NxDomainRedirect
For new links, pass --resolution-policy NxDomainRedirect to az network private-dns link vnet create. In Bicep or ARM, the property is resolutionPolicy on Microsoft.Network/privateDnsZones/virtualNetworkLinks. Use an API version that supports it.
Which link to change:
- Spokes using Azure-provided DNS: the link for each spoke VNet, or the hub VNet if the spokes resolve through a Private Resolver in the hub.
- On-premises through Azure DNS Private Resolver: the link for the VNet that holds the resolver's inbound endpoint. The query is resolved in that VNet's context.
- Custom DNS VMs: the link for the VNet the DNS VMs live in. They forward to 168.63.129.16 from there.
Warning
Fallback also changes failure behaviour for your own resources. If the A record for your own storage account is deleted, clients no longer get NXDOMAIN. They resolve the public IP and fail with 403, or worse, succeed over the internet if the public endpoint is open. Keep
publicNetworkAccessdisabled on your own resources so a missing record fails closed. Alert on private endpoint DNS record deletions as well.
Option B: a private endpoint to the partner resource
az network private-endpoint create -g rg-app -n pe-partnerdata-blob \
--vnet-name vnet-spoke1 --subnet snet-pe \
--private-connection-resource-id "/subscriptions/<partner-sub>/resourceGroups/<rg>/providers/Microsoft.Storage/storageAccounts/partnerdata" \
--group-id blob --connection-name partnerdata-blob \
--manual-request true --request-message "Ticket CHG-12345, read-only ingest"
--manual-request true is required across tenants. The connection stays Pending until the owner approves it. Then add the A record to your zone, either through a DNS zone group or with the policy that creates DNS records for your private endpoints.
Step 4: verify, including negative caching
Resolvers cache NXDOMAIN answers for the negative TTL in the zone's SOA. Clients and on-premises forwarders may keep returning NXDOMAIN for a while after the fix. Flush where you can:
Clear-DnsClientCache
Resolve-DnsName partnerdata.blob.core.windows.net
sudo resolvectl flush-caches 2>/dev/null; dig +short partnerdata.blob.core.windows.net
Then test the data path, not just DNS. A successful lookup that leads to a 403 means the owner's network rules need your egress IPs (NAT Gateway or firewall public IPs), or that you need Option B.
curl -sS -o /dev/null -w "%{http_code}\n" "https://partnerdata.blob.core.windows.net/?comp=list"
A 400 or 403 with an XML error body from the storage service means you reached it. A connection timeout means the network path is the problem.
Prevent it next time
- Decide per zone whether fallback is allowed, and record the decision. Typical choice: allow it on
privatelink.blob,privatelink.vaultcore.azure.netand other zones used for partner integration; deny it on zones that hold only your own regulated data. - Set
resolutionPolicyin the IaC module that creates zone links, so new spokes behave the same as existing ones. - Add a synthetic DNS check for each critical external dependency from a spoke VM and from on-premises.
- When a partner says they are "adding a private endpoint", treat it as a change to your DNS. Their change will break your resolution unless fallback is already on.
Get the weekly HubDatAI email
One email a week with everything new: posts, learning sessions and videos. Free, no spam, unsubscribe in one click. What you get