PSHarriJaakkonen:~/Blog/Posts>cat ./az-700-part-08-private-link-service-endpoints.html

AZ-700 Part 8: Private Link, Private Endpoints, and Service Endpoints

AZ-700 Part 8: Private Link, Private Endpoints, and Service Endpoints

Back to AZ-700 index

Private Endpoint

A private endpoint is a network interface with a private IP address in your VNet. It connects privately to a supported Azure PaaS resource. The resource is reached over the Microsoft backbone and can be locked down from public network access.

Private Link Service

Private Link service lets you publish your own service privately to consumers. The provider service usually sits behind a Standard Load Balancer. Consumers create private endpoints to access it.

DNS Is The Exam Trap

Private endpoints change name resolution. Public names need to resolve to private IP addresses from the networks that should use private access. That usually means Azure Private DNS zones linked to VNets, plus forwarding from on-premises DNS through DNS Private Resolver or custom DNS servers.

ScenarioRequired DNS pattern
Azure VM accesses storage account private endpointPrivate DNS zone linked to the VM VNet.
On-premises client accesses private endpointOn-premises DNS forwards Azure private endpoint zone queries to Azure DNS path.
Hub-spoke private endpoint resolutionPrivate DNS zone linked to all required VNets, or centralized DNS forwarding.

Service Endpoints

Service endpoints keep the Azure service public endpoint but allow the service to identify traffic as coming from a specific VNet/subnet. They are simpler than private endpoints but do not place the service on a private IP in your VNet.

Private Endpoint vs Service Endpoint

FeaturePrivate EndpointService Endpoint
Private IP in VNetYesNo
Uses public endpointNo for client pathYes
DNS complexityHigherLower
On-premises private accessYes, with VPN/ExpressRoute and DNSNot the same private endpoint model
Most secure PaaS isolation answerUsually yesUseful but less private

Access Controls

  • Disable public network access where supported when using private endpoints.
  • Approve private endpoint connections where manual approval is required.
  • Use network rules and firewall settings on the PaaS service.
  • Use private DNS zone groups to automate DNS record creation.
  • Use service endpoint policies when service endpoint access must be restricted to specific resources.

Lab

  1. Create a storage account with public network access disabled.
  2. Create a private endpoint in a workload VNet.
  3. Create or attach the correct Private DNS zone.
  4. Test resolution and connectivity from Azure VM.
  5. Add hybrid DNS forwarding design notes for on-premises clients.

Feature Deep Dive

Private Endpoint Lifecycle

A private endpoint creates a NIC in your subnet. That NIC receives a private IP and maps to a specific subresource such as blob, file, vault, SQL server, or registry. Some services require separate private endpoints for separate subresources. The endpoint can be automatically approved or require manual approval depending on ownership and policy.

Private DNS Zone Groups

A private DNS zone group connects the private endpoint to the right Private DNS zone and creates the A record automatically. Without the DNS record, clients may still resolve the public endpoint and bypass the intended private path.

Hybrid Private Endpoint Access

On-premises clients can use private endpoints over VPN or ExpressRoute, but only if routing and DNS are both correct. The route must reach the VNet private IP, and DNS must resolve the public service name to that private IP. DNS Private Resolver is the managed option for this forwarding pattern.

Service Endpoint Policies

Service endpoint policies restrict which service resources can be reached through service endpoints. They are useful when a subnet should reach only approved storage accounts or service resources, but they do not replace Private Link for private IP access.

Common Exam Traps

  • Thinking private endpoint traffic uses the service public IP. It uses the private endpoint IP.
  • Disabling public access before DNS is working, then clients lose access.
  • Forgetting separate private endpoint subresources.
  • Expecting on-premises DNS to know Azure private zones without forwarding.
  • Choosing service endpoints when the requirement says private IP, Private Link, or no public endpoint exposure.

Scenario Workshop: Key Vault Locked Down With Private Endpoint

Scenario: A Key Vault has public network access disabled and a private endpoint in a spoke VNet. An app in the same spoke works. An automation host on-premises fails to resolve the vault name correctly.

The fix is not a new Key Vault firewall rule if the requirement says private-only access. The fix is hybrid DNS plus network reachability to the private endpoint IP.

LayerRequired design
NetworkVPN or ExpressRoute route to the spoke or hub path that reaches the private endpoint IP.
DNSOn-premises DNS forwards vault private DNS zone queries to Azure.
AuthorizationIdentity still needs Key Vault permissions or RBAC. Private endpoint is not authorization.
Public accessCan remain disabled after private resolution works.

Private Link Service Provider Flow

  1. Provider deploys a service behind a Standard Load Balancer.
  2. Provider creates a Private Link service associated with the load balancer frontend.
  3. Consumer creates a private endpoint targeting the provider service alias or resource.
  4. Provider approves the connection if manual approval is required.
  5. Consumer accesses the provider service through a private IP in the consumer VNet.

Security Boundary Reminder

Private Endpoint controls network path. It does not replace identity, RBAC, keys, firewall rules inside the service, or data-plane permissions. For example, a private endpoint to storage does not grant blob access; it only creates private network reachability.

Previous | Next: Part 9 - NSGs, ASGs, Flow Logs, and Bastion