Azure Security

Why Private Endpoints Don’t Automatically Make Azure Private

·6 min read ·Author: AI prompt generated

There is a sentence I hear often enough that it is worth writing down: “We put private endpoints on everything, so the data plane is private now.” It is said with confidence, it is usually said by a competent engineer, and it is usually not true.

Not because private endpoints don't work. They work exactly as documented. The problem is that what they do is narrower than what people assume, and the gap between the two is where the exposure lives.

What a private endpoint actually does

A private endpoint is a network interface in your subnet that holds a private IP address and maps to one specific sub-resource of one specific PaaS resource. That's the whole mechanism. It creates a private path to that resource.

Note the verb. It creates a private path. It does not remove the public one, and it does not make anything else about the resource more restrictive. Those are separate settings, and every one of them defaults in the direction of availability rather than privacy.

1. The public endpoint stays open until you close it

This is the big one, and it is a one-line fix that gets skipped constantly. Deploying a private endpoint does not change publicNetworkAccess on the resource. Both paths are live. Anything on the internet that can authenticate can still reach the resource over its public hostname, and your private endpoint sits alongside doing nothing to prevent it.

The property name varies by service, which is part of why it gets missed:

  • Storage accounts: publicNetworkAccess, plus networkAcls.defaultAction set to Deny
  • Key Vault: publicNetworkAccess and the firewall's default action
  • Azure SQL: publicNetworkAccess on the logical server
  • App Service: publicNetworkAccess plus access restrictions
  • Cosmos DB: publicNetworkAccess and the IP range filter

If you check one thing from this article, check this one. A resource with a private endpoint and an open public endpoint is not a private resource. It's a resource with two doors.

2. DNS is the entire mechanism, and it fails silently

A private endpoint only takes effect if the client resolves the resource's public hostname to the endpoint's private IP. That happens through a private DNS zone — privatelink.blob.core.windows.net, privatelink.vaultcore.azure.net, privatelink.database.windows.net, and so on — linked to the VNet the client sits in.

Miss the zone link and nothing breaks. The name resolves to the public IP, the client connects over the internet, the application works perfectly, and the private endpoint you paid for is an unused NIC. There is no error. There is no warning. The only symptom is a flow log entry nobody is reading.

Three places this goes wrong in practice:

  • Peered VNets. The zone has to be linked to every VNet whose clients resolve the name, not just the one holding the endpoint. Peering routes traffic; it does not share DNS.
  • On-premises clients. Corporate DNS has no idea the private zone exists. It needs a conditional forwarder to an Azure DNS Private Resolver or a forwarder VM, or those clients keep going out the front door.
  • Hand-built A records. Someone bypasses the private zone and writes the record manually, then the endpoint is recreated with a different IP during a rebuild and the record silently points at nothing — or worse, at something else.

3. Your NSGs may not be applying

For a long time, network security groups and user-defined routes did not apply to private endpoint traffic at all. Support arrived behind a subnet-level flag, privateEndpointNetworkPolicies, which has historically defaulted to Disabled on subnets created before the feature shipped.

So you can have an NSG attached to the private endpoint subnet, with rules that read correctly in the portal, that is not filtering anything. Check the subnet property, not the NSG. This is a particularly uncomfortable finding because the control looks present in every screenshot and every export.

4. Sub-resources are separate, and storage has six of them

A private endpoint targets a sub-resource, not a resource. A storage account exposes blob, file, table, queue, dfs and web. A private endpoint for blob does precisely nothing for the file share.

The usual version of this: blob traffic was the known requirement, so blob got an endpoint, and the account is now described in the architecture document as private. Meanwhile the file endpoint and the table endpoint are reachable from anywhere, governed only by whatever the account firewall says — which, per point one, is often Allow.

Each sub-resource also needs its own private DNS zone. Six sub-resources, six zones, six zone links per VNet.

5. The trusted-services bypass is a hole you opened on purpose

Lock down a storage account and something inside Azure stops working — diagnostic settings, a backup job, Azure Monitor, an Event Grid subscription. The documented fix is to enable the trusted Azure services exception, bypass: AzureServices.

That is a legitimate setting and often the right answer. It is also a bypass of the firewall you just configured, scoped to a list of services maintained by Microsoft rather than by you. It belongs in your documentation as an accepted exception with a reason attached, not as an undiscussed checkbox someone ticked to make a pipeline go green.

6. A private endpoint is a VNet boundary, not an application boundary

Once the endpoint exists, the resource is reachable from the whole VNet — and from peered VNets, and from anything with a route there, including the VPN and ExpressRoute ranges. Every VM, every container, every build agent in that address space can reach it at the network layer.

That is usually a dramatic improvement over internet-reachable. It is not the per-application isolation people often describe it as. (Where a rollout has to be done across an estate rather than reasoned about, that is a remediation engagement.) If the intent is “only the API tier reaches the database,” the private endpoint doesn't deliver that on its own. Subnet segmentation plus NSGs do — with point three verified first.

What private endpoints are not a substitute for

Worth saying plainly, because it reframes the whole exercise: network privacy does not stop a valid credential from working. A private endpoint narrows where a request can come from. It has no opinion on who is making it.

A leaked storage account key, a service principal secret in a pipeline log, or a standing Owner assignment on the subscription all remain exactly as effective as before — they just arrive over the private path now. Private endpoints are a network control. Keys, managed identities and RBAC are the access control, and they do most of the actual work.

What to check

Concrete and in order, for every PaaS resource you believe is private:

  • publicNetworkAccess is Disabled, and the resource firewall's default action is Deny
  • A private DNS zone exists for each sub-resource in use, and is linked to every VNet that resolves it
  • On-premises DNS forwards the privatelink zones to a resolver in Azure
  • Resolution is verified from a client, not inferred from the config — resolve the hostname and confirm you get a private IP
  • privateEndpointNetworkPolicies is Enabled on the endpoint subnet if you expect NSGs to apply
  • Every sub-resource in use has an endpoint, not just the obvious one
  • Trusted-services bypasses are documented with the reason they exist
  • Shared keys are disabled where the service supports it, and access runs through managed identities and RBAC

None of this is exotic. It is eight properties, most of them booleans. The reason it's worth a deliberate pass is that every one of them fails quietly — the application keeps working either way, which means nothing surfaces the gap until someone goes looking.

Want the deeper technical version?

The member library holds the full private-endpoint verification checklist, the Azure Resource Graph queries that find every resource with an open public endpoint, and the private DNS zone matrix by service.

← All insights