Cybermatic.aiAll guides →

The Cybermatic Signal · Fix-it Guides · Cloud · Azure

How to disable public blob access on Azure Storage accounts

← All guides · Time to fix: 5 minutes per account; 30 minutes to deploy Azure Policy ten · Azure

Azure Storage accounts have a setting that, when left on, lets any individual container be opened to anonymous internet access with no authentication required. Any organization running workloads in Azure is potentially affected, especially if storage accounts were created with default settings or by developers who needed quick access during testing. The fix takes about five minutes per account once you know which accounts to target.

The fix, verified

Storage account allows public blob access

Severitycritical · Azure
Where to clickAzure portal → Storage accounts → the account → Settings → Configuration → Allow Blob anonymous access: Disabled → Save.
Or run
az storage account update --name STORAGE-ACCOUNT --resource-group RESOURCE-GROUP --allow-blob-public-access false
Before you doStatic websites served straight from the account break; put them behind Azure CDN or Front Door first.
Maps toCIS Azure 3.7SOC2 CC6.1

What this setting does and what goes wrong

The 'Allow Blob anonymous access' setting is an account-level switch. When it is enabled, it does not immediately expose anything on its own — but it unlocks the ability for individual containers within that account to be set to 'Blob' or 'Container' public access level. The problem is that this second step is easy to do accidentally, easy to inherit from a template, and easy to forget. A realistic scenario: a developer creates a container to share some test assets, sets it to public for convenience, and moves on. The container stays public. Months later that same account holds a second container with customer documents, and someone sets that one to public too, assuming it is fine because the account already allows it. Those documents are now readable by anyone with the URL — no login, no token, no audit trail.

How to check whether you are affected

The fastest way to audit all accounts in a subscription is with the Azure CLI. Run the command below, substituting your subscription ID, to list every storage account where public blob access is still allowed.

In the portal you can check one account at a time: open the storage account, go to Settings, then Configuration, and look at the 'Allow Blob anonymous access' field. If it shows 'Enabled', the account is at risk.

How to fix it

For each affected account, you have two options.

az storage account update --name STORAGE-ACCOUNT --resource-group RESOURCE-GROUP --allow-blob-public-access false

The change takes effect immediately. Existing containers that were set to public access will stop serving anonymous requests as soon as the account-level setting is disabled, even if the container-level setting has not been changed.

What might break and how to handle it

The main thing that breaks is a static website hosted directly from the storage account's blob endpoint without any proxy in front of it. If you have a site at a URL like 'youraccount.z13.web.core.windows.net' and visitors hit it without authenticating, disabling public access will return 403 errors to those visitors. Before you flip the switch on any account serving a static site, put it behind Azure CDN or Azure Front Door. Both services authenticate to the storage account using their own identity, so the account can stay locked down while the site remains publicly reachable. Check with your developers or review the account's static website blade in the portal before making the change.

How to keep it fixed

A one-time fix is not enough if new storage accounts can be created with the default setting. Use Azure Policy to enforce this at scale.

Questions people ask

Does disabling public blob access affect Azure Blob Storage SAS tokens?

No. Shared access signatures authenticate the request and are not considered anonymous access. Disabling public blob access only blocks unauthenticated requests; SAS URLs continue to work normally.

Can I disable public access on all storage accounts in a subscription at once?

Not with a single CLI command, but you can script a loop using 'az storage account list' to get all account names and resource groups, then call 'az storage account update' for each one. Alternatively, assigning the Azure Policy with a Deny effect prevents new violations and a remediation task can fix existing ones.

Will this setting affect Azure Data Lake Storage Gen2 accounts?

Yes. Data Lake Storage Gen2 is built on Azure Blob Storage, so the same account-level public access setting applies. The same fix and the same cautions about static websites apply.

Is this open in your environment?

Cybermatic checks for "Storage account allows public blob access" automatically — on every connected account, every day — and shows you the exact fix above next to each one it finds. The free scan takes about ten minutes and needs no credit card.

Run the free scan All guides →

Part of The Cybermatic Signal. Written by the Cybermatic editorial agent from the configuration check Cybermatic runs for this setting (ID azure-public-blob) and reviewed before publication. The click path, command and caution in the fix card are the vendor's documented procedure as of 2026-11-11. Found an error? Write to info@cybermatic.ai.

BriefingIssuesFlashGuidesInsurance checkDomain checkSubscribe

Cybermatic.ai by Ironhawk Group · 9330 Lyndon B Johnson Fwy, Suite 900 · Dallas, TX 75243 · Privacy · cybermatic.ai