Home › Studies › AZ-700 › Private Access › Private Link & Private Endpoints

Private Link & Private Endpoints

Private endpoints · approval · network policies · DNS integration · Private Link service · on-premises access

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Private endpoint basics

A private endpoint is a network interface that uses a private IP address from your virtual network. It brings the service into your virtual network. Traffic between your virtual network and the service travels the Microsoft backbone network.

PropertyWhat it sets
SubnetThe subnet where the private IP address is assigned
Private-link resourceThe target, chosen by resource ID or alias
Target subresourceThe part of the service to connect to (for example blob, file, sqlServer, vault, sites)
Connection approval methodAutomatic or manual
Request messageText shown to the owner when approval is manual
Connection statusRead-only: Approved, Pending, Rejected or Disconnected

Creating a private endpoint

SettingRule
Static IP addressSet only at creation; cannot be added to an existing endpoint
Network interface nameSet only at creation; renaming an existing endpoint's NIC is not supported
SubscriptionsThe subscription with the private-link resource and the one with the private endpoint must both be registered with the Microsoft network resource provider
PermissionsOwner, Contributor or Network contributor; a custom role needs Microsoft.Network/virtualNetworks/subnets/join/action and Microsoft.Network/privateEndpoints/write

Connection approval

Provider actionEndpoint stateMeaning
None (manual request)PendingWaiting for the resource owner
Approve (or automatic)ApprovedReady; only this state sends traffic
RejectRejectedOwner refused the connection
RemoveDisconnectedOwner removed it; delete the endpoint to clean up

Network policies and traffic control

DNS integration

DNS must resolve the service FQDN to the private IP of the endpoint. Azure adds a CNAME in public DNS that points to the privatelink name. A private DNS zone linked to your network answers with the private IP. Application connection URLs do not change.

ResourceSubresourcePrivate DNS zone
Storageblobprivatelink.blob.core.windows.net
Storagefileprivatelink.file.core.windows.net
Azure SQL DatabasesqlServerprivatelink.database.windows.net
Key Vaultvaultprivatelink.vaultcore.azure.net
Web Apps / Functionssitesprivatelink.azurewebsites.net
Cosmos DBSqlprivatelink.documents.azure.com
Service Bus / Event Hubsnamespaceprivatelink.servicebus.windows.net

Private Link service (provider side)

A Private Link service publishes your own service, behind a Standard Load Balancer, to consumers who create a private endpoint to it.

SettingWhat it does
Load balancer frontend IP configurationThe frontend that receives the traffic; different from the NAT IP configuration
NAT IP configurationSource-side NAT on the provider network; the service sees the NAT IP as the client. Up to 8 NAT IPs; keep at least 1
AliasGlobally unique, generated by Azure (prefix.GUID.region.azure.privatelinkservice); the prefix cannot change
VisibilityWho may see and request: RBAC only, restricted by subscription, or anyone with the alias
Auto-approvalSubscriptions approved automatically; a subset of visibility
TCP Proxy v2Passes the consumer source IP and the private endpoint LinkID to the service

CLI and PowerShell

TaskAzure CLIPowerShell
Create a private endpoint (dynamic IP)az network private-endpoint create --connection-name connection-1 --name private-endpoint --private-connection-resource-id $id --resource-group test-rg --subnet subnet-1 --group-id sites --vnet-name vnet-1New-AzPrivateEndpoint @pe
Static IP at creationaz network private-endpoint create --connection-name connection-1 --name private-endpoint --private-connection-resource-id $id --resource-group test-rg --subnet subnet-1 --group-id sites --ip-config name=ipconfig-1 group-id=sites member-name=sites private-ip-address=10.0.0.10 --vnet-name vnet-1-
Name the NIC at creation (PowerShell: set CustomNetworkInterfaceName in the @pe parameters)az network private-endpoint create --connection-name myConnection --name myPrivateEndpoint --private-connection-resource-id $id --resource-group myResourceGroup --subnet myBackendSubnet --group-id sites --nic-name myPrivateEndpointNIC --vnet-name myVNetNew-AzPrivateEndpoint @pe
Find GroupId and MemberNameaz network private-link-resource list --resource-group MyResourceGroup --name myWebApp1979 --type Microsoft.Web/sitesGet-AzPrivateLinkResource -PrivateLinkResourceId $webapp.ID
Enable endpoint network policies on a subnet (PowerShell: PrivateEndpointNetworkPoliciesFlag = 'Enabled' in the @sub parameters)az network vnet subnet update --disable-private-endpoint-network-policies false --name default --resource-group myResourceGroup --vnet-name myVNetSet-AzVirtualNetworkSubnetConfig @sub
Create a private DNS zoneaz network private-dns zone create --resource-group test-rg --name "privatelink.azurewebsites.net"New-AzPrivateDnsZone
Link the zone to a virtual networkaz network private-dns link vnet create --resource-group test-rg --zone-name "privatelink.azurewebsites.net" --name dns-link --virtual-network vnet-1 --registration-enabled falseNew-AzPrivateDnsVirtualNetworkLink
Create a DNS zone groupaz network private-endpoint dns-zone-group create --resource-group test-rg --endpoint-name private-endpoint --name zone-group --private-dns-zone "privatelink.azurewebsites.net" --zone-name webappNew-AzPrivateDnsZoneGroup @zg
Approve a connectionaz network private-endpoint-connection approve --name myPrivateEndpointConnection --resource-group myResourceGroupApprove-AzPrivateEndpointConnection @approve
Reject a connectionaz network private-endpoint-connection reject --name myPrivateEndpointConnection --resource-group myResourceGroupDeny-AzPrivateEndpointConnection @deny
Remove a connectionaz network private-endpoint-connection delete --name myPrivateEndpointConnection --resource-group myResourceGroupRemove-AzPrivateEndpointConnection @remove
Disable Private Link service network policyaz network vnet subnet update --name subnet-1 --vnet-name vnet-1 --resource-group test-rg --private-link-service-network-policies Disabled($vnet | Select -ExpandProperty subnets | Where-Object {$_.Name -eq $subnet}).privateLinkServiceNetworkPolicies = "Disabled"
Create a Private Link serviceaz network private-link-service create --resource-group test-rg --name private-link-service --vnet-name vnet-1 --subnet subnet-1 --lb-name load-balancer --lb-frontend-ip-configs frontend --location eastus2New-AzPrivateLinkService @privlinksettings

Exam Tips

Tick each tip once you can answer it without looking.

“Private IP in your virtual network for a PaaS database; traffic must stay on the Microsoft backbone” → Private endpoint (Private Link). Trap: a service endpoint keeps the service on its public IP.

“Allow access to one specific storage account only, not the whole service” → Private endpoint: it maps to one resource instance. Trap: a service endpoint opens the service type, not one instance.

“Storage account needs both blob and file access over private endpoints” → Two private endpoints, one per subresource. Trap: one endpoint covers only its target subresource.

“Private endpoint created, but the service is still reachable from the internet” → Disable public network access or set the service firewall on the resource. Trap: the endpoint alone does not turn off public access.

“Need a static private IP for the endpoint, endpoint already exists” → Re-create the endpoint with a static IP. Trap: static IP and NIC name can be set only at creation.

“You lack RBAC permission on the target resource” → Manual approval; status stays Pending until the owner approves. Trap: automatic approval needs the privateEndpointConnectionsApproval permission.

“A rejected connection must work now” → Remove it and create a new connection. Trap: a rejected connection cannot be approved.

“NSG rules seem ignored for private endpoint traffic” → Enable private endpoint network policies on the subnet. Trap: policies are disabled by default.

“Force private endpoint traffic through a firewall with a UDR” → Enable UDR policy and use a route with prefix equal to or larger than the VNet prefix length. Trap: 0.0.0.0/0 loses to the endpoint's /32 route.

“Inspect private endpoint traffic with Azure Firewall and keep return traffic symmetric” → Application rules (Azure Firewall always SNATs them). Trap: network rules or an NVA need SNAT configured.

“Clients still get the public IP for the SQL server name” → Link a private DNS zone privatelink.database.windows.net to the VNet. Trap: the endpoint creates no record without a zone.

“Peered spokes must resolve the endpoint” → Link the one private DNS zone to every spoke and the hub. Trap: separate zones of the same name need manual record merging.

“On-premises clients must resolve a private endpoint name” → Azure DNS forwarder or Private Resolver; conditional forward to the public zone name. Trap: forwarding to the privatelink zone name.

“Two services' endpoints share one private DNS zone and records disappear” → One private DNS zone per service. Trap: a zone linked to two services deletes the first A record.

“Publish your own app to other tenants privately” → Private Link service behind a Standard Load Balancer. Trap: Basic Load Balancer is not supported.

“Consumer subscriptions should connect without approval” → Add them to the auto-approval list. Trap: visibility only controls who can request.

“Provider app needs the consumer's real source IP” → Enable TCP Proxy v2 and parse the header. Trap: without it the app sees only the NAT IP.

“Private Link service creation fails on the subnet” → Set privateLinkServiceNetworkPolicies to Disabled. Trap: leaving the policy enabled.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Private Access overviewService Endpoints →