Troubleshooting Azure Private Link

On this page

This document provides guidance on troubleshooting common issues encountered when using Azure Private Link. Private Link simplifies network connectivity to Azure Platform as a Service (PaaS) and customer-owned services. However, network configuration can sometimes lead to connectivity problems.

Common Issues

Connectivity Checks

Before diving deep, perform basic connectivity checks:

Example: Using PowerShell to test TCP connectivity to a storage account's private endpoint:

Test-NetConnection -ComputerName 10.0.1.4 -Port 443 -InformationLevel Detailed

(Replace 10.0.1.4 with your Private Endpoint's IP and 443 with the relevant service port.)

DNS Resolution

Correct DNS resolution is crucial for Private Link. The Private Endpoint creates a Network Interface (NIC) with a private IP address. Your DNS must resolve the service FQDN (e.g., privatelink.blob.core.windows.net) to this private IP address.

Note: If you are accessing a service using its public FQDN and have configured Private Link, you MUST ensure that the FQDN resolves to the Private Endpoint's IP address for private access.

Troubleshooting DNS:

Network Security Groups (NSGs)

NSGs applied to the subnet of the Private Endpoint or to the VNet’s gateway/firewall can block traffic.

Tip: Start with broadly permissive rules (e.g., allow all from VNet) for testing, then narrow them down.

Firewall Rules

Azure Firewall or Network Virtual Appliances (NVAs) can also restrict traffic.

Private Endpoint Status

The status of the Private Endpoint resource itself can indicate issues.

Service Availability

Ensure the target Azure service itself is healthy and available.

Troubleshooting Scenarios

Scenario 1: Cannot connect to Private Endpoint from VM in same VNet

Likely Cause: NSG rules blocking traffic, incorrect DNS resolution, or service-specific firewall.

Action: Check NSGs on VM NIC, VM subnet, and VNet. Verify DNS resolution from VM. Test direct IP connectivity to Private Endpoint.

Scenario 2: Cannot connect from on-premises via VPN/ExpressRoute

Likely Cause: Hybrid connectivity issues, on-premises firewall, incorrect DNS forwarding.

Action: Verify VPN/ExpressRoute tunnel status. Check on-premises firewall. Ensure DNS queries for Private Link FQDNs are forwarded correctly to Azure DNS.

Scenario 3: Intermittent connectivity or slow performance

Likely Cause: Network congestion, MTU issues, inefficient routing, or issues with the target service.

Action: Monitor network bandwidth. Check MTU settings on NICs and intermediate devices. Use Network Watcher to analyze latency. Check service health and performance metrics.

General Tip: When troubleshooting, it's often helpful to isolate the problem. Test connectivity from a VM in the same VNet as the Private Endpoint, then from a peered VNet, and finally from on-premises to pinpoint where the issue lies.