Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Servers, nginx and Docker

The Azure portal lists containers but cannot open them: network request failed

Your error

Network request failed - cannot access storage endpoint. Your firewall settings may be preventing network access from this client to the storage data endpoint.1 more line it can show

Fix it fast

Most common cause, 1 of 4

The firewall allows selected networks, and your public IP is not one of them

Add your internet-facing IPv4 address as an IP network rule.

Fix
az storage account network-rule add --resource-group myresourcegroup --account-name mystorageaccount --ip-address 16.17.18.19
Did this fix it?
Full steps for this cause: check, fix, verify

Short answer

Network request failed - cannot access storage endpoint appears when your browser cannot reach the account's data endpoint. Storage firewall rules, disabled public access with a private endpoint, or DNS missing the privatelink zone block it. Add your public IP, browse from inside the virtual network, or fix the private DNS zone. Applies to Azure Storage with Azure CLI 2.93.

  • Applies to Azure Blob Storage and Data Lake Storage (StorageV2 accounts), Azure CLI 2.93, Azure portal storage browser
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Which cause do you have?

Read the account's network settings and resolve its blob host name from the machine running your browser. The two answers together tell you whether the public endpoint is closed, filtered, or reached through the wrong address.

Run this first
az storage account show --resource-group myresourcegroup --name mystorageaccount --query "{publicNetworkAccess:publicNetworkAccess, defaultAction:networkRuleSet.defaultAction, ipRules:networkRuleSet.ipRules}"
nslookup mystorageaccount.blob.core.windows.net

Then find the line you see in this list and open its fix:

  1. 1The firewall allows selected networks, and your public IP is not one of themdefaultAction is Deny, publicNetworkAccess is Enabled, and ipRules does not contain the public IPv4 address your browser uses
  2. 2Public access is disabled and you are outside the private endpoint's networkpublicNetworkAccess is Disabled, and nslookup on your laptop follows the privatelink CNAME to a public address
  3. 3You are inside the network, but DNS still returns the public addressThe browsing VM is in or peered with the private endpoint's virtual network, yet nslookup shows a public IP instead of the private endpoint IP
  4. 4Your browser runs on an Azure VM in the same region, where IP rules do nothingAn IP rule for the VM's public address exists, the account allows selected networks, and the VM sits in the account's Azure region

What does the error look like?

  • Network request failed - cannot access storage endpoint. Your firewall settings may be preventing network access from this client to the storage data endpoint.
  • CORS settings on your storage account may be preventing network access from this client.

Cause 1 of 4

The firewall allows selected networks, and your public IP is not one of them

You seedefaultAction is Deny, publicNetworkAccess is Enabled, and ipRules does not contain the public IPv4 address your browser uses

Check

Storage firewall rules govern data plane calls only. The portal can still list containers through the control plane, but opening one sends data requests from your browser, so the cannot access storage endpoint message means your machine sits outside the trusted boundary. Microsoft states that portal, Storage Explorer and AzCopy users must be inside it.

Check
az storage account network-rule list --resource-group myresourcegroup --account-name mystorageaccount --query ipRules

Fix

Add your internet-facing IPv4 address as an IP network rule. Private ranges such as 10.x or 192.168.x are refused, and a single address is entered without a /32 prefix.

Fix
az storage account network-rule add --resource-group myresourcegroup --account-name mystorageaccount --ip-address 16.17.18.19

Verify

The new address appears in the rule list, and after a page refresh the container opens and lists its blobs.

Verify
az storage account network-rule list --resource-group myresourcegroup --account-name mystorageaccount --query ipRules

Confirmed by learn.microsoft.com

Did this fix it?

Cause 2 of 4

Public access is disabled and you are outside the private endpoint's network

You seepublicNetworkAccess is Disabled, and nslookup on your laptop follows the privatelink CNAME to a public address

Check

With only a private endpoint, the account answers clients in the linked virtual network. Outside it, the blob name still resolves to the public endpoint, which no longer accepts traffic, so a portal session from home or the office cannot load the container.

Check
nslookup mystorageaccount.blob.core.windows.net

Fix

Open the portal from a machine that is inside that virtual network, or connected to it by VPN or peering with matching DNS. If browsing from the internet is acceptable, change public network access to selected networks and add only your IP.

Fix
# option A: from a VM or VPN client inside the virtual network
nslookup mystorageaccount.blob.core.windows.net

# option B: reopen the public endpoint to your IP only
az storage account update --resource-group myresourcegroup --name mystorageaccount --public-network-access Enabled --default-action Deny
az storage account network-rule add --resource-group myresourcegroup --account-name mystorageaccount --ip-address 16.17.18.19

Verify

The lookup from the browsing machine returns the private endpoint's address, and the container opens.

Verify
nslookup mystorageaccount.blob.core.windows.net

Confirmed by learn.microsoft.com

Did this fix it?

Cause 3 of 4

You are inside the network, but DNS still returns the public address

You seeThe browsing VM is in or peered with the private endpoint's virtual network, yet nslookup shows a public IP instead of the private endpoint IP

Check

Private endpoint routing works only through name resolution. A custom or on-premises DNS server that does not forward the privatelink.blob.core.windows.net zone hands back the public answer, and the closed public endpoint refuses the browser.

Check
az network private-dns link vnet list --resource-group myresourcegroup --zone-name privatelink.blob.core.windows.net

Fix

Link the private DNS zone privatelink.blob.core.windows.net to the virtual network the client uses, or set your DNS server to forward that subdomain to Azure DNS. Keep using the normal blob host name in the portal and apps, not the privatelink one.

Fix
az network private-dns link vnet create --resource-group myresourcegroup --name blob-dns-link --zone-name privatelink.blob.core.windows.net --virtual-network myvnet --registration-enabled false

Verify

nslookup for the normal blob host name now returns the private endpoint's address from the browsing machine.

Verify
nslookup mystorageaccount.blob.core.windows.net

Confirmed by learn.microsoft.com

Did this fix it?

Cause 4 of 4

Your browser runs on an Azure VM in the same region, where IP rules do nothing

You seeAn IP rule for the VM's public address exists, the account allows selected networks, and the VM sits in the account's Azure region

Check

IP network rules have no effect on requests that come from the same Azure region as the storage account, so a jump box in that region is still blocked even when its address is listed.

Check
az storage account show --resource-group myresourcegroup --name mystorageaccount --query location

Fix

Allow the VM's subnet with a virtual network rule instead. Turn on the Microsoft.Storage.Global service endpoint for the subnet, then add the subnet to the account's network rules.

Fix
az network vnet subnet update --resource-group myresourcegroup --vnet-name myvnet --name mysubnet --service-endpoints "Microsoft.Storage.Global"
subnetid=$(az network vnet subnet show --resource-group myresourcegroup --vnet-name myvnet --name mysubnet --query id --output tsv)
az storage account network-rule add --resource-group myresourcegroup --account-name mystorageaccount --subnet $subnetid

Verify

The rule list now shows the subnet under virtualNetworkRules, and the portal on the VM opens the container.

Verify
az storage account network-rule list --resource-group myresourcegroup --account-name mystorageaccount --query virtualNetworkRules

Confirmed by learn.microsoft.com

Did this fix it?

How do I stop it coming back?

  • Keep the admin team's office or VPN egress IPs in the storage account's IP rules as code, so a template redeploy does not wipe them.
  • For private-endpoint-only accounts, give operators a jump host in the linked network and test nslookup from it after every DNS change.
  • Link the privatelink.blob.core.windows.net zone to every virtual network that browses or reads the account, including peered hub networks.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Projects of mine on the same stack: Workforce, Raheeb.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.