Skip to main content

Azure Private Endpoint

An Azure Private Endpoint is a network interface with a private IP from your virtual network that connects to an Azure PaaS service. Traffic to the service stays on the private network and never crosses the public internet.

Azure Private Endpoint

A Private Endpoint uses Azure Private Link to map a specific service instance, such as one storage account or SQL server, to a private IP in your subnet. Clients reach the service by that IP, and you can disable the service's public network access completely. It is required for strict compliance postures where the PaaS service must have no public exposure.

How Is a Private Endpoint Different From a Service Endpoint?

A service endpoint keeps traffic on the Azure backbone, but the service still has a public IP and is reached through it. A private endpoint gives the service a private address inside your network, so no public path is needed at all. A private endpoint also maps to one resource, not the whole service type, which limits data exfiltration.

How Do You Create One?

Bash
az network private-endpoint create --name storage-pe \
--resource-group mumbai-prod-rg --vnet-name mumbai-prod-vnet \
--subnet pe-subnet \
--private-connection-resource-id <storage-account-id> \
--group-id blob --connection-name storage-connection
az storage account update --name mumbaiprodstorage \
--resource-group mumbai-prod-rg --public-network-access Disabled

Why DNS Is the Part That Breaks

The service name must resolve to the private IP. Create a Private DNS Zone such as privatelink.blob.core.windows.net, link it to the virtual network, and attach a DNS zone group to the endpoint. Without it, clients keep resolving the public address.

sequenceDiagram participant V as App VM participant D as Private DNS zone participant P as Private endpoint participant S as Storage account V->>D: Resolve mumbaiprodstorage.blob.core.windows.net D-->>V: 10.20.5.4 private IP V->>P: HTTPS to 10.20.5.4 P->>S: Private Link

Why It Matters in Production

A payments team like Stripe's would reach its storage and database tiers only through private endpoints with public access off, so an exposed storage URL cannot become a data leak.

Security

Creating the endpoint does not close the public route. Disable public network access on the PaaS resource itself.

Common Mistake

Skipping the Private DNS Zone. The endpoint exists but clients still hit the public name and fail once public access is disabled.

Frequently Asked Questions

Does a private endpoint cost money?

Yes. You pay an hourly charge per endpoint plus data processed through it.

Can on-premises users reach a private endpoint?

Yes, over VPN or ExpressRoute, as long as on-premises DNS forwards the privatelink zone to an Azure-resolvable DNS server.

How do I troubleshoot a private endpoint that is not working?

Run nslookup from the client and confirm the name returns the private IP. If it returns a public IP, the DNS zone or link is the problem rather than the endpoint.

Found a mistake, an outdated step or a broken link?