# Storage accounts should disable public network access

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

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.

```text
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](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StoragePublicNetworkAccess_AuditDeny.json))
- **Test before applying:** As for every Azure Policy guardrail: [how to test before enforcing](/mechanisms/azure-policy/)
- **Mechanism:** [Azure Policy (built-in definitions)](/mechanisms/azure-policy/): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
- **Taken from:** [open source set](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StoragePublicNetworkAccess_AuditDeny.json), 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."

## Related guardrails

- [Deny disabling block public access for AMIs](/guardrails/aws-scp-deny-disable-ami-block-public-access/): AWS, Service control policies (SCPs), public exposure
- [Require IAM authentication on Lambda function URLs](/guardrails/aws-scp-require-lambda-url-iam-auth/): AWS, Service control policies (SCPs), public exposure
- [Deny changes to S3 Block Public Access at bucket level](/guardrails/aws-rcp-deny-bucket-public-access-block-changes/): AWS, Resource control policies (RCPs), public exposure
- [Network interfaces should not have public IPs](/guardrails/azure-policy-nic-no-public-ip/): Azure, Azure Policy (built-in definitions), public exposure
- [Configure storage accounts to disallow public blob access](/guardrails/azure-policy-storage-disable-public-blob/): Azure, Azure Policy (built-in definitions), public exposure

## Related pages

- [Storage accounts should have the specified minimum TLS version (Azure Azure Policy)](/guardrails/azure-policy-storage-min-tls/)
- [Storage accounts should prevent shared key access (Azure Azure Policy)](/guardrails/azure-policy-storage-no-shared-key/)
- [Storage SAS tokens should adhere to 7 day maximum validity (Azure Azure Policy)](/guardrails/azure-policy-storage-sas-7-days/)

## Sources

- Storage accounts should disable public network access: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StoragePublicNetworkAccess_AuditDeny.json (read 10 Nov 2026)
- How to test it first: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/azure-policy-storage-disable-public-network/
