The problem: the private endpoint existed, but nobody outside Azure could find it
- Workloads running in AWS needed to reach Azure Blob Storage over private endpoints, not over the public internet.
- After the private endpoints were created, AWS applications still resolved the storage hostnames to public IPs, silently bypassing the private path.
- The reason: Azure private DNS zones only answer inside the Azure virtual networks they're linked to. Clients on-premises or in AWS either can't find the private record or fall back to the public endpoint.
- The fix wasn't obvious, because resolution crossed four separate DNS systems in two clouds plus on-premises: Azure Private DNS, Azure DNS Private Resolver, Amazon Route 53 Resolver, and the on-premises DNS platform.
The approach: build the resolution chain end to end
AWS workload / on-prem client
→ Route 53 Resolver (forwarding rule for privatelink.blob.core.windows.net)
→ Outbound endpoint → Azure DNS Private Resolver (inbound endpoint)
→ Azure private DNS zone (privatelink.blob.core.windows.net, linked VNet)
→ Private endpoint (private IP) → Storage account (Blob)
Name resolution and network reachability are separate problems. This case study is about the first one: making the storage hostname resolve to the private IP from every network that needs it.
What I built
1. Diagnosed the full chain gap
- The Azure private DNS zone was linked only to Azure VNets, so nothing outside Azure could query it.
- On-premises DNS had no forwarding rule for the private-link zone.
- No Route 53 Resolver rule bridged AWS DNS queries toward Azure.
2. A four-part resolution design
- Azure private DNS zone linked to the virtual network where resolution happens.
- Private endpoint with a DNS zone group, so its A record is created and maintained in the zone automatically.
- Route 53 Resolver inbound and outbound endpoints in the workload's AWS account.
- A Route 53 forwarding rule sending
privatelink.blob.core.windows.netqueries to the Azure DNS Private Resolver's inbound endpoint.
On-premises DNS forwards to the Route 53 inbound endpoint, so on-premises clients follow the same chain through AWS.
Illustrative: the AWS side, forwarding the private-link zone to Azure.
resource "aws_route53_resolver_endpoint" "outbound" {
name = "to-azure"
direction = "OUTBOUND"
security_group_ids = [aws_security_group.resolver.id]
ip_address { subnet_id = var.subnet_a }
ip_address { subnet_id = var.subnet_b }
}
resource "aws_route53_resolver_rule" "privatelink_blob" {
domain_name = "privatelink.blob.core.windows.net"
rule_type = "FORWARD"
resolver_endpoint_id = aws_route53_resolver_endpoint.outbound.id
target_ip {
ip = var.azure_private_resolver_inbound_ip # placeholder
}
}
resource "aws_route53_resolver_rule_association" "workload_vpc" {
resolver_rule_id = aws_route53_resolver_rule.privatelink_blob.id
vpc_id = var.workload_vpc_id
}
Illustrative: the Azure side, a private endpoint that registers itself in the zone.
resource "azurerm_private_endpoint" "blob" {
name = "pe-${var.storage_account_name}-blob"
location = var.location
resource_group_name = var.resource_group_name
subnet_id = var.private_endpoint_subnet_id
private_service_connection {
name = "blob"
private_connection_resource_id = azurerm_storage_account.this.id
subresource_names = ["blob"]
is_manual_connection = false
}
private_dns_zone_group {
name = "blob"
private_dns_zone_ids = [azurerm_private_dns_zone.blob.id]
}
}
resource "azurerm_private_dns_zone_virtual_network_link" "resolver" {
name = "link-resolver-vnet"
resource_group_name = var.dns_resource_group_name
private_dns_zone_name = azurerm_private_dns_zone.blob.name
virtual_network_id = var.resolver_vnet_id
}
3. Delivered across three repositories in a strict order
The change spanned security, AWS networking and Azure networking code, merged in a fixed order: security group rules first (DNS on TCP and UDP 53 from the on-premises DNS ranges), then the Route 53 endpoints and forwarding rule, with the Azure zone link in parallel. Merging out of order produces endpoints that exist but can't be reached.
4. Firewall requests for both directions
Separate firewall rules for DNS queries (on-premises DNS → Route 53 inbound, TCP and UDP 53) and DNS responses (Route 53 inbound → on-premises DNS). Keeping them as separate rows stops the response direction from being forgotten and silently blocked.
5. A reusable playbook
I wrote a cross-cloud private endpoint playbook: a step-by-step execution guide, an intake checklist, status-update templates, common pitfalls and an evidence checklist. Later requests of the same type run from the playbook instead of starting from scratch.
How to verify it
From each network that needs access, query the storage account's normal hostname and confirm the answer is a private IP:
nslookup mystorageaccount.blob.core.windows.net
# Expect: a CNAME to mystorageaccount.privatelink.blob.core.windows.net
# resolving to a private address, not a public one.
Things to watch
- A public answer means it's "working" over the internet. If resolution falls back to the public endpoint, the application still connects, just not privately. Test the DNS answer, not only whether the connection succeeds.
- DNS responses need their own firewall rule. Allowing queries but not responses looks exactly like a broken resolver.
- The zone must be linked where the resolver lives. The Azure DNS Private Resolver can only answer for private zones linked to its own virtual network.
- Order matters across repositories. Resolver endpoints without their security group rules, or forwarding rules without endpoints, fail without obvious errors.
- Resolving isn't reaching. A private IP answer is only useful if there's a routed private path between the networks. That's a separate piece of the design.
What it solves
- Workloads in AWS reach Azure Storage over private endpoints, as intended, instead of quietly going over the public internet.
- One resolution design covers AWS and on-premises clients.
- Repeatable delivery: later requests follow the playbook instead of being re-analyzed.
What it doesn't solve
- Public access to the storage account itself. A private endpoint adds a private path; it doesn't remove the public one. Disable public network access, or restrict it with storage firewall rules, to make private the only path.
- Network routing. DNS gives the private address; routing between AWS, on-premises and Azure still has to carry the traffic.
- Other storage services. Each one (file, queue, table, Data Lake
dfs) has its ownprivatelinkzone and needs its own records and forwarding.
Checklist
- [ ] Private endpoint created with a DNS zone group
- [ ] Private DNS zone linked to the resolver's virtual network
- [ ] Azure DNS Private Resolver inbound endpoint reachable from AWS
- [ ] Route 53 outbound endpoint and forwarding rule for the private-link zone, associated with each workload VPC
- [ ] On-premises DNS forwarding to the Route 53 inbound endpoint
- [ ] Firewall rules for DNS queries and DNS responses, both directions
- [ ] Hostname resolves to a private IP from every client network
- [ ] Public network access on the storage account disabled or restricted
Further reading
- Azure Private Endpoint DNS configuration: https://learn.microsoft.com/azure/private-link/private-endpoint-dns
- Azure DNS Private Resolver: https://learn.microsoft.com/azure/dns/dns-private-resolver-overview
- Route 53 Resolver forwarding rules: Amazon Route 53 Developer Guide (Resolver section)