How to connect privately to a service with Azure Private Link
Azure Private Link connects a virtual network (VNet) to an Azure PaaS resource or a service offered by another organization using a private IP address. Azure creates a network interface called a **private endpoint** in the consumer VNet, and traffic to the connected service travels over the Microsoft backbone. Creating the endpoint does not automatically disable the service’s public access or configure DNS and application permissions. ([Microsoft: Azure Private Link overview](https://learn.microsoft.com/en-us/azure/private-link/private-link-overview), [Microsoft: private endpoint overview](https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview))
How to connect privately to a service with Azure Private Link
Azure Private Link connects a virtual network (VNet) to an Azure PaaS resource or a service offered by another organization using a private IP address. Azure creates a network interface called a private endpoint in the consumer VNet, and traffic to the connected service travels over the Microsoft backbone. Creating the endpoint does not automatically disable the service’s public access or configure DNS and application permissions. (Microsoft: Azure Private Link overview, Microsoft: private endpoint overview)
For example, suppose an application VNet needs to reach the Blob subresource of an Azure Storage account. A private endpoint assigns a private IP in a VNet subnet and connects it to that blob subresource. If DNS resolves the existing Storage hostname to this private IP, the application can use the private route without changing its address. If the same Storage account also needs File or Queue access, plan a separate connection for each required subresource. (Microsoft: private endpoints and target subresources)
What path does a private endpoint create?
A private endpoint is a network interface with a private IP from a selected subnet. It connects to a particular Private Link resource and target subresource. Only clients initiate connections to the service; the provider does not receive a route that lets it initiate arbitrary connections into the consumer VNet. This is a service-specific entry point, unlike peering that routes between whole VNets. (Microsoft: private endpoint properties and network security)
Private Link carries traffic over the Microsoft backbone and can connect to supported resources in other regions. The private endpoint must be deployed in the same region and subscription as its VNet, while the target Private Link resource can be in another region. Supported target services and subresources vary, so check the current service list before deployment. (Microsoft: Azure Private Link overview, Microsoft: private endpoint overview)
How is a Private Endpoint different from a Service Endpoint?
Both features apply VNet boundaries to Azure services, but the address and connection model differ.
| Criterion | Private Endpoint (Private Link) | Service Endpoint |
|---|---|---|
| Address used for the service | Private IP in a VNet subnet | Service keeps a publicly routable address |
| Access scope | Private entry to a selected resource and subresource | Connects a VNet subnet to service-side network rules |
| DNS | Usually requires a private DNS zone or organizational DNS setup | Continues using the standard service endpoint name |
| Access from other networks | Possible with appropriate DNS and routing over peering, VPN, or ExpressRoute | Access comes from VNet subnets allowed by the service |
| Main consideration | Check DNS, connection approval, and public network access separately | Does not create a private IP entry point |
Microsoft describes a Private Endpoint as providing a private IP for a specific resource, while a Service Endpoint retains the service’s publicly routable IP. A Private Endpoint may fit when access should be narrowed to one resource over a private route. If an existing Service Endpoint meets the need and a private IP is not required, compare service-specific network rules and operational effects before changing it. (Microsoft: Private Link FAQ)
How do you connect an Azure PaaS resource to a Private Endpoint?
These are the usual Azure Portal steps. Available subresources, permissions, and DNS zones vary by service, so verify target values in that service’s documentation. No resource was created in an Azure subscription for this article.
**Check prerequisites:** Confirm that the service supports Private Link and select the correct subscription, VNet, and subnet. The private endpoint must be deployed in the same region and subscription as the VNet.
**Start the deployment:** In Azure Portal, select **Private endpoints → Create** and enter the subscription, resource group, name, and region.
**Choose the target:** On the Resource page, select a connection to an Azure resource, then choose the resource and required subresource, such as Storage `blob`.
**Choose the network:** Select the consumer VNet and subnet. Use automatic IP allocation, or choose a static IP at creation when the service supports it and the design requires it. Do not assume an existing endpoint’s IP can be changed later.
**Configure DNS:** Link the service’s Private DNS zone or configure organizational DNS so the service name resolves to the endpoint’s private IP. Check the fully qualified domain name (FQDN) used by the application.
**Review and create:** Recheck the target, subresource, VNet/subnet, IP, DNS, and connection status, then create the endpoint. If manual approval is required, traffic cannot flow until the resource owner approves the connection. ([Microsoft: create a private endpoint in the portal](https://learn.microsoft.com/en-us/azure/private-link/create-private-endpoint-portal), [Microsoft: manage private endpoint connections](https://learn.microsoft.com/en-us/azure/private-link/manage-private-endpoint))
How do you approve the connection and verify private DNS?
A consumer with the necessary Azure role-based access control (RBAC) permissions on the resource can use automatic approval. A consumer in another subscription or tenant without those permissions may need to submit a request for the resource owner to approve. The connection must be Approved before it can carry traffic. Pending means approval is incomplete; Rejected means it was denied. Some denied connections cannot later be changed to approved, so remove the old connection and submit a new request. (Microsoft: manage private endpoint connections)
DNS is what lets clients use the private route. Azure service names may normally resolve to public addresses. Link the appropriate Private DNS zone to the VNet, or configure Resolver and conditional forwarding so the application’s usual fully qualified domain name resolves to the private endpoint IP. Sharing one service’s Private DNS zone carelessly across multiple private endpoints can cause record conflicts or deletion. Follow the service-specific DNS guidance, and consider whether public resource names still need to resolve when overriding them with private records. (Microsoft: private endpoint DNS configuration)
One distinction matters: a DNS response containing a private IP does not prove that a private endpoint is attached or that data access is authorized. Conversely, creating a Private Endpoint does not automatically turn off public network access to the target service. To block public paths, restrict them separately in the service’s network settings or firewall, after reviewing the effect on other consumers and management paths. (Microsoft: private endpoint network security, Microsoft: private endpoint DNS cautions)
What should you check when the connection fails?
Separate approval, DNS, network path, and target-service permissions to narrow the cause.
**Connection state:** Confirm the private endpoint connection is `Approved`. If it is `Pending`, the target resource owner may need to approve it.
**DNS result:** From the client, resolve the target FQDN and confirm it returns the private endpoint IP. If it returns a public address, check the Private DNS zone link, record, VNet DNS settings, and on-premises conditional forwarding.
**Target subresource:** Confirm the endpoint connects to the subresource the application actually uses. For example, a Storage Blob endpoint may not cover access to the File service.
**Network filters:** Check subnet NSGs, user-defined routes, and the target service firewall. If you expect NSGs or UDRs to apply to private endpoints, verify the subnet’s private-endpoint network-policy setting.
**Service access controls:** Check whether public network access is disabled and whether service firewall, authentication, and authorization settings allow the request. DNS resolution alone does not grant data-plane access.
To verify connectivity, resolve the FQDN from the actual client and confirm that it returns a private IP, then make an authenticated request using the service’s real protocol. Microsoft’s web-app example uses nslookup to check that the original app hostname resolves through a privatelink name to a VNet private IP. Record name resolution and request success separately. (Microsoft: private endpoint quickstart)
When does Private Link fit, and what remains separate?
Private Link is useful when a client needs a private IP path to a specific Azure resource instead of directly using the service’s public IP. Clients in another VNet or on premises can also use it when peering, VPN, or ExpressRoute routing and DNS are configured. It is harder to use when the service is unsupported, organization-wide DNS cannot be managed consistently, or public access is being disabled without planning separate controls.
A service provider can also place its application behind an Azure Standard Load Balancer and expose it to consumers through a Private Link service. The consumer requests a Private Endpoint connection, and the provider manages approval, rejection, or removal. By default, the provider application may see a NAT-translated address rather than the consumer’s original IP. If the original address is needed, review TCP Proxy Protocol v2 support and application-side header processing. (Microsoft: Private Link service overview, Microsoft: Private Link FAQ)
Plan and verify three things separately: connection approval determines who may connect, DNS determines which address clients use, and service access controls determine which requests are allowed after connection. Coordinating all three keeps the private path within its intended scope.
Official documentation
[Azure Private Link overview](https://learn.microsoft.com/en-us/azure/private-link/private-link-overview)
[What is a private endpoint?](https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview)
[Create a private endpoint in the Azure portal](https://learn.microsoft.com/en-us/azure/private-link/create-private-endpoint-portal)
[Private endpoint DNS configuration](https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns)
[Manage Azure private endpoint connections](https://learn.microsoft.com/en-us/azure/private-link/manage-private-endpoint)
[Private Link service overview](https://learn.microsoft.com/en-us/azure/private-link/private-link-service-overview)
[Azure Private Link FAQ](https://learn.microsoft.com/en-us/azure/private-link/private-link-faq)