Azure Private Link Documentation

Securely connect to Azure services and customer-owned/partner services

Introduction to Azure Private Link

Azure Private Link provides the ultimate connectivity solution by enabling you to access Azure Platform as a Service (PaaS) and Azure Virtual Machines (VMs) over a private endpoint within your virtual network. Traffic between your virtual network and the service travels the Microsoft backbone network, eliminating exposure to the public internet.

This service simplifies network security and helps you meet compliance requirements by ensuring that data doesn't traverse public networks. Private Link is supported across a wide range of Azure services, including Azure Storage, Azure SQL Database, Azure Key Vault, and many others.

How Azure Private Link Works

Azure Private Link utilizes private endpoints to establish a private connection to an Azure service. A private endpoint is a network interface that connects your virtual network privately and securely to a specific Azure service.

  1. Service Provider: An Azure service (e.g., Azure Storage) exposes its resources via a private link service.
  2. Private Endpoint Creation: You create a private endpoint in your virtual network, specifying the Azure service you want to connect to.
  3. Network Integration: Azure assigns a private IP address from your virtual network to the private endpoint.
  4. Traffic Routing: DNS is configured to resolve the service's FQDN (Fully Qualified Domain Name) to the private IP address of the private endpoint.
  5. Secure Connectivity: All traffic destined for the Azure service is routed through the Microsoft backbone network to the private endpoint, bypassing the public internet.
Important: For Azure PaaS services, Private Link uses the service's standard FQDN. For your own services or partner services, you'll use a custom domain.

Key Concepts

Private Endpoint

A network interface that connects your virtual network privately and securely to an Azure service. It gets a private IP address from your virtual network.

Private Link Service

A service that allows you to expose your own Azure service or a partner service through Private Link, making it accessible privately from other virtual networks.

Private Endpoint Connection

Represents the connection from a private endpoint to a private link service. It can be in a 'Pending', 'Approved', 'Rejected', or 'Disconnected' state.

Network Security Groups (NSGs)

NSGs can be applied to the subnet containing the private endpoint to further control inbound and outbound traffic.

Common Use Cases

Benefits of Azure Private Link

Getting Started with Azure Private Link

Creating a private endpoint is a straightforward process managed through the Azure portal, Azure CLI, or PowerShell.

Using Azure Portal:

  1. Navigate to your desired Azure service (e.g., Storage account).
  2. Under 'Settings', select 'Networking'.
  3. Go to the 'Private endpoint connections' tab and click '+ Private endpoint'.
  4. Configure the basic details, resource, and virtual network for your private endpoint.
  5. Azure will guide you through the DNS configuration.

Example using Azure CLI:

az network private-endpoint create \
    --name myPrivateEndpoint \
    --resource-group myResourceGroup \
    --vnet-name myVNet \
    --subnet mySubnet \
    --private-connection-resource-id "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" \
    --group-ids "blob" \
    --connection-name myConnection

For detailed steps and specific service configurations, please refer to the official Azure Private Link documentation.

Advanced Topics