Why This Matters
By default, many Azure services (like Storage, SQL Database) are accessible over the public internet.
To secure them, Azure provides Service Endpoints and Private Link.
Service Endpoints
-
Extend your VNet’s private IP space to an Azure service.
-
Traffic still travels over the Azure backbone, not the public internet.
-
Access is limited to resources from that VNet/subnet.
-
Easy to set up (configure on subnet + service).
Use Case:
-
Secure access from a VNet to Azure Storage, without requiring public internet access.
Private Link (Private Endpoint)
-
Provides a private IP address in your VNet that is directly mapped to a PaaS service (e.g., Storage, SQL).
-
Service now looks like it’s part of your private VNet.
-
Prevents exposure to the public internet completely.
-
Can be used for cross-tenant scenarios (e.g., partners).
Use Case:
-
Access Azure SQL Database privately with a VNet private IP instead of a public endpoint.
Service Endpoints vs Private Link
-
Service Endpoint:
-
Secures traffic to Azure services over Azure backbone.
-
Service still has a public IP, just locked to your VNet.
-
-
Private Link:
-
Gives your service a private IP inside your VNet.
-
Service is completely hidden from the internet.
-
Exam trick: If the requirement says “completely disable public exposure”, the answer is Private Link.
Confusion Buster 🚨
-
Firewall Rules vs Service Endpoints vs Private Link
-
Firewall = IP filtering at the service level.
-
Service Endpoint = restrict access to service from a specific VNet/subnet.
-
Private Link = service gets a private IP in your VNet.
-
Simple Example
A company uses Azure SQL Database.
-
With Service Endpoints, only traffic from their VNet can access SQL, but the SQL DB still has a public IP.
-
With Private Link, the SQL Database gets a private IP in their VNet → invisible to the public internet.
Exam Tip
-
Look for keywords:
-
“Private IP for service inside VNet” → Private Link.
-
“Restrict access to VNet/subnet only” → Service Endpoint.
-
“Completely eliminate internet exposure” → Private Link.
-
What to Expect in the Exam
-
Direct Q: “Which option assigns a private IP to an Azure SQL Database?” → Private Link.
-
Scenario: “Restrict access to Azure Storage only from Subnet A.” → Service Endpoint.
-
Trick Q: “Service Endpoints remove the public IP from a service.” (False — that’s Private Link).