Skip to content
Cloud Governance Tools

Storage accounts should disable public network access

Storage accounts should disable public network access is an Azure guardrail written in Azure Policy. Denies storage accounts that leave public network access enabled, so access is only through private endpoints. What it breaks: the documented effect of the setting is that it denies all logins that match IP or virtual network-based firewall rules.

More public exposure guardrails ยท About Azure Policy

Built-in policy definition: Storage accounts should disable public network access
Definition ID: b2982f36-99f2-4db5-8eff-283140c09693
Category: Storage
Supported effects: Audit, Deny, Disabled
policyRule (copied from the repository file):
{
    "if": {
      "allOf": [
        {
          "field": "type",
          "equals": "Microsoft.Storage/storageAccounts"
        },
        {
          "not": {
            "field": "Microsoft.Storage/storageAccounts/publicNetworkAccess",
            "in": [
              "Disabled",
              "SecuredByPerimeter"
            ]
          }
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]"
    }
  }
Blocks
Denies storage accounts that leave public network access enabled, so access is only through private endpoints.
Breaks
The documented effect of the setting is that it denies all logins that match IP or virtual network-based firewall rules. (source)
Test before applying
As for every Azure Policy guardrail: how to test before enforcing
Mechanism
Azure Policy (built-in definitions): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
Taken from
open source set, MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE

What the source says

"To improve the security of Storage Accounts, ensure that they aren't exposed to the public internet and can only be accessed from a private endpoint." (read 10 Nov 2026).

On what it breaks: "This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules."

Sources

  1. Storage accounts should disable public network access, read 10 Nov 2026
  2. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.