What is Azure Private Endpoint?

Azure Private Endpoint is a network interface that connects you privately and securely to a service powered by Azure Private Link. Private Endpoint uses a private IP address from your VNet, effectively bringing the service into your VNet. The service could be an Azure service such as Azure Storage, Azure Cosmos DB, SQL, etc. or your own Private Link Service.

Private Endpoint properties

A Private Endpoint specifies the following properties:

Property Description
Name A unique name within the resource group.
Subnet The subnet to deploy and allocate private IP addresses from a virtual network. For subnet requirements, see the Limitations section in this article.
Private Link Resource The private link resource to connect using resource ID or alias, from the list of available types. A unique network identifier will be generated for all traffic sent to this resource.
Target subresource The subresource to connect. Each private link resource type has different options to select based on preference.
Connection approval method Automatic or manual. Based on role-based access control (RBAC) permissions, your private endpoint can be approved automatically. If you try to connect to a private link resource without RBAC, use the manual method to allow the owner of the resource to approve the connection.
Request Message You can specify a message for requested connections to be approved manually. This message can be used to identify a specific request.
Connection status A read-only property that specifies if the private endpoint is active. Only private endpoints in an approved state can be used to send traffic. Additional states available:
-Approved: Connection was automatically or manually approved and is ready to be used.

-Pending: Connection was created manually and is pending approval by the private link resource owner.

-Rejected: Connection was rejected by the private link resource owner.

-Disconnected: Connection was removed by the private link resource owner. The private endpoint becomes informative and should be deleted for cleanup.

Here are some key details about private endpoints:

  • Private endpoint enables connectivity between the consumers from the same VNet, regionally peered VNets, globally peered VNets and on premises using VPN or Express Route and services powered by Private Link.

  • Network connections can only be initiated by clients connecting to the Private endpoint, Service providers do not have any routing configuration to initiate connections into service consumers. Connections can only be establish in a single direction.

  • When creating a private endpoint, a read-only network interface is also created for the lifecycle of the resource. The interface is assigned dynamically private IP addresses from the subnet that maps to the private link resource. The value of the private IP address remains unchanged for the entire lifecycle of the private endpoint.

  • The private endpoint must be deployed in the same region as the virtual network.

  • The private link resource can be deployed in a different region than the virtual network and private endpoint.

  • Multiple private endpoints can be created using the same private link resource. For a single network using a common DNS server configuration, the recommended practice is to use a single private endpoint for a given private link resource to avoid duplicate entries or conflicts in DNS resolution.

  • Multiple private endpoints can be created on the same or different subnets within the same virtual network. There are limits to the number of private endpoints you can create in a subscription. For details, see Azure limits.

  • The subscription from the private link resource must also be registered with Micosoft.Network resource provider. For details, see Azure Resource Providers.

A private link resource is the destination target of a given private endpoint. The following is a list of available private link resource types:

Private link resource name Resource type Subresources
Private Link Service (Your own service) Microsoft.Network/privateLinkServices empty
Azure Automation Microsoft.Automation/automationAccounts Webhook, DSCAndHybridWorker
Azure SQL Database Microsoft.Sql/servers Sql Server (sqlServer)
Azure Synapse Analytics Microsoft.Sql/servers Sql Server (sqlServer)
Azure Storage Microsoft.Storage/storageAccounts Blob (blob, blob_secondary)
Table (table, table_secondary)
Queue (queue, queue_secondary)
File (file, file_secondary)
Web (web, web_secondary)
Azure Data Lake Storage Gen2 Microsoft.Storage/storageAccounts Blob (blob, blob_secondary)
Data Lake File System Gen2 (dfs, dfs_secondary)
Azure Cosmos DB Microsoft.AzureCosmosDB/databaseAccounts Sql, MongoDB, Cassandra, Gremlin, Table
Azure Database for PostgreSQL -Single server Microsoft.DBforPostgreSQL/servers postgresqlServer
Azure Database for MySQL Microsoft.DBforMySQL/servers mysqlServer
Azure Database for MariaDB Microsoft.DBforMariaDB/servers mariadbServer
Azure IoT Hub Microsoft.Devices/IotHubs iotHub
Azure Key Vault Microsoft.KeyVault/vaults vault
Azure Kubernetes Service - Kubernetes API Microsoft.ContainerService/managedClusters management
Azure Search Microsoft.Search/searchService searchService
Azure Container Registry Microsoft.ContainerRegistry/registries registry
Azure App Configuration Microsoft.Appconfiguration/configurationStores configurationStores
Azure Backup Microsoft.RecoveryServices/vaults vault
Azure Event Hub Microsoft.EventHub/namespaces namespace
Azure Service Bus Microsoft.ServiceBus/namespaces namespace
Azure Relay Microsoft.Relay/namespaces namespace
Azure Event Grid Microsoft.EventGrid/topics topic
Azure Event Grid Microsoft.EventGrid/domains domain
Azure App Service Microsoft.Web/sites sites
Azure Machine Learning Microsoft.MachineLearningServices/workspaces workspace
SignalR Microsoft.SignalRService/SignalR signalR
Azure Monitor Microsoft.Insights/privateLinkScopes azuremonitor
Cognitive Services (Microsoft.CognitiveServices/accounts account
Azure File Sync Microsoft.StorageSync/storageSyncServices Afs

Network security of private endpoints

When using private endpoints for Azure services, traffic is secured to a specific private link resource. The platform performs an access control to validate network connections reaching only the specified private link resource. To access additional resources within the same Azure service, additional private endpoints are required.

You can completely lock down your workloads from accessing public endpoints to connect to a supported Azure service. This control provides an additional network security layer to your resources by providing a built-in exfiltration protection that prevents access to other resources hosted on the same Azure service.

You can connect to a private link resource using the following connection approval methods:

  • Automatically approved when you own or have permission on the specific private link resource. The permission required is based on the private link resource type in the following format: Microsoft.<Provider>/<resource_type>/privateEndpointConnectionApproval/action
  • Manual request when you don't have the permission required and would like to request access. An approval workflow will be initiated. The private endpoint and subsequent private endpoint connection will be created in a "Pending" state. The private link resource owner is responsible to approve the connection. After it's approved, the private endpoint is enabled to send traffic normally, as shown in the following approval workflow diagram.

workflow approval

The private link resource owner can perform the following actions over a private endpoint connection:

  • Review all private endpoint connections details.
  • Approve a private endpoint connection. The corresponding private endpoint will be enabled to send traffic to the private link resource.
  • Reject a private endpoint connection. The corresponding private endpoint will be updated to reflect the status.
  • Delete a private endpoint connection in any state. The corresponding private endpoint will be updated with a disconnected state to reflect the action, the private endpoint owner can only delete the resource at this point.

Note

Only a private endpoint in an approved state can send traffic to a given private link resource.

Connecting using Alias

Alias is a unique moniker that is generated when the service owner creates the private link service behind a standard load balancer. Service owner can share this Alias with their consumers offline. Consumers can request a connection to private link service using either the resource URI or the Alias. If you want to connect using Alias, you must create private endpoint using manual connection approval method. For using manual connection approval method, set manual request parameter to true during private endpoint create flow. Look at New-AzPrivateEndpoint and az network private-endpoint create for details.

DNS configuration

When connecting to a private link resource using a fully qualified domain name (FQDN) as part of the connection string, it's important to correctly configure your DNS settings to resolve to the allocated private IP address. Existing Azure services might already have a DNS configuration to use when connecting over a public endpoint. This needs to be overridden to connect using your private endpoint.

The network interface associated with the private endpoint contains the complete set of information required to configure your DNS, including FQDN and private IP addresses allocated for a given private link resource.

For complete detailed information about best practices and recommendations to configure DNS for Private Endpoints, please review Private Endpoint DNS configuration article.

Limitations

The following table includes a list of known limitations when using private endpoints:

Limitation Description Mitigation
Network Security Group (NSG) rules and User Defined Routes do not apply to Private Endpoint NSG is not supported on private endpoints. While subnets containing the private endpoint can have NSG associated with it, the rules will not be effective on traffic processed by the private endpoint. You must have network policies enforcement disabled to deploy private endpoints in a subnet. NSG is still enforced on other workloads hosted on the same subnet. Routes on any client subnet will be using an /32 prefix, changing the default routing behavior requires a similar UDR Control the traffic by using NSG rules for outbound traffic on source clients. Deploy individual routes with /32 prefix to override private endpoint routes. NSG Flow logs and monitoring information for outbound connections are still supported and can be used

Next steps