Reach storage privately with a private endpoint

Azure Portal, Hands On20 minutesCosts moneySteps checked 23 October 2026By Cloud Hands On

In this task you'll connect to a storage account through a private endpoint.

Services such as storage and SQL have a public address by default. A private endpoint gives one of them a private IP address inside your virtual network, so your VMs reach it without going over the internet. You can then turn the public access off.

For names to work, the service's normal address must point to the private IP from inside the network. A private DNS zone, such as privatelink.blob.core.windows.net, does that for you when you tick it during setup.

Example. Larkfield Group's finance VMs read reports from stlarkfieldreports. A private endpoint puts the account at 10.0.2.5 in the finance network, and public network access is disabled, so nobody outside can reach it.

Costs money. A private endpoint costs about 0.01 USD an hour (under 1p) plus a tiny charge per GB, and its private DNS zone about 0.50 USD a month while it exists. Do it in one sitting and delete it straight after, or follow along by reading.

Before you start

You need: Network Contributor, plus Contributor on the storage account. Time: 20 minutes.

Where to look

  1. Storage accounts
  2. your account
  3. Security + networking
  4. Networking
  5. Private endpoints

Steps

  1. You need a storage account and vnet-practice. Open the storage account, select Networking, then the Private endpoints tab and + Create private endpoint.
  2. Name it pe-practice-blob in rg-portal-practice. On Resource, set Target sub-resource to blob.
  3. On Virtual Network, pick vnet-practice and a subnet. On DNS, keep Integrate with private DNS zone on Yes.This creates the zone privatelink.blob.core.windows.net and links it to the network.
  4. Select Review + create, then Create. From now on it costs money every hour.
  5. Open the private endpoint and look at DNS configuration: the storage account's name and its new private IP address.
  6. From a VM in the network, run nslookup <account name>.blob.core.windows.net. The answer is the private IP, not a public one.Without a VM you can still read the records in the private DNS zone.
  7. Look at the storage account's Public network access setting: on a real system you'd now set it to Disabled. Then clean up straight away.

Commands

# Create a private endpoint for a storage account's blobs
SA_ID=$(az storage account show --resource-group rg-portal-practice --name <account> --query id --output tsv)
az network private-endpoint create --resource-group rg-portal-practice --name pe-practice-blob \
  --vnet-name vnet-practice --subnet <subnet name> --private-connection-resource-id $SA_ID \
  --group-id blob --connection-name pe-practice-blob

# The private DNS zone and its link to the network
az network private-dns zone create --resource-group rg-portal-practice --name privatelink.blob.core.windows.net
az network private-dns link vnet create --resource-group rg-portal-practice --zone-name privatelink.blob.core.windows.net \
  --name link-practice --virtual-network vnet-practice --registration-enabled false
az network private-endpoint dns-zone-group create --resource-group rg-portal-practice --endpoint-name pe-practice-blob \
  --name default --private-dns-zone privatelink.blob.core.windows.net --zone-name blob

Watch out for

Cost
Charged by the hour and per GB while it exists, plus the private DNS zone. Delete both when you've finished.
Security
The endpoint only adds a private way in. Public access stays on until you disable it, so do that once private access works.
Common mistakes
Skipping the DNS zone, so the name still resolves to the public address. Testing from your own computer, which isn't in the network. Disabling public access before checking the private path works.

Clean up

  1. Resource groups
  2. rg-portal-practice
  3. Delete resource group

Delete pe-practice-blob and the private DNS zone privatelink.blob.core.windows.net, or delete the resource group at the end of the networking section.

Words to know

Private endpoint
A network card in your subnet that connects privately to one Azure service.
Private Link
The Azure technology behind private endpoints.
Private DNS zone
DNS records that only your linked networks can see, used to point a service's name at its private IP.
Target sub-resource
Which part of the service you connect to, such as blob or file for storage.

Tick off each step and track your progress in the guide.

Open this task in Azure Portal, Hands On

Keep going