Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Microsoft Azure Foundations v6.0.0 · 9.3.2.2

Storage accounts should have public network access disabled

  • Level 1
  • Storage Services

This check looks at the public network access setting on each Azure storage account. The safe setting is Disabled, so the account is reachable only through private endpoints.

Why it matters

A storage account with public network access enabled has an endpoint that can be reached from the internet. Access still needs valid credentials or a permitted network rule, but the exposed endpoint widens what an attacker can probe and means a leaked key or token can be used from anywhere. Turning the public endpoint off and using private endpoints keeps traffic on your virtual network.

Microsoft describes the options in Configure Azure Storage firewalls and virtual networks and Use private endpoints for Azure Storage.

How to check it yourself

In the Azure portal, open the storage account and go to Security + networking > Networking > Firewalls and virtual networks. The Public network access option should read Disabled. To review every account you can read at once, run this read-only Azure CLI command:

az storage account list \
  --query "[].{name:name, group:resourceGroup, publicNetworkAccess:publicNetworkAccess}" \
  --output table

Accounts showing Enabled or an empty value need attention. The command only reads resource properties; use a test subscription first if you want to see the output shape.

How to fix it

First create a private endpoint for each service that clients use (blob, file, queue, table) in the virtual network those clients run in, and make sure private DNS resolves the storage name to the private address. Then in the portal choose Networking > Public network access > Disabled and save. With the CLI:

az storage account update \
  --name <account-name> \
  --resource-group <resource-group> \
  --public-network-access Disabled

If some clients must keep using the public endpoint, the alternative is Enabled from selected virtual networks and IP addresses, which narrows exposure but does not fully close it. ConfigCobra itself never writes to your Azure; these steps are for you to run.

What changes when you fix it

Anything that reaches the account over its public endpoint stops working: users on home or office networks, build pipelines, third-party tools, and Azure services outside your virtual network. They need a route to the private endpoint, for example through a virtual network, peering, VPN or ExpressRoute. The Azure portal's storage browser is also affected for people outside the network. Test with one non-production account and check application logs for failed connections before rolling out. ConfigCobra's remediation impact analysis lists the affected resources and identities for a failing control before you apply the fix.

Included in

BenchmarkCIS IDProfile
CIS Microsoft Azure Foundations v6.0.09.3.2.2Level 1
CIS Microsoft Azure Storage Services v2.0.016.2.2Level 2

Check this on your Microsoft Azure

ConfigCobra runs this check with every other control of the CIS Microsoft Azure Benchmarks, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial