{ "properties": { "displayName": "Storage accounts should disable public network access", "policyType": "BuiltIn", "mode": "All", "description": "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. Disable the public network access property as described in https://aka.ms/storageaccountpublicnetworkaccess. 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. This reduces data leakage risks.", "metadata": { "version": "1.1.0", "category": "Storage" }, "version": "1.1.0", "parameters": { "effect": { "type": "String", "metadata": { "displayName": "Effect", "description": "Enable or disable the execution of the policy" }, "allowedValues": [ "Audit", "Deny", "Disabled" ], "defaultValue": "Audit" } }, "policyRule": { "if": { "allOf": [ { "field": "type", "equals": "Microsoft.Storage/storageAccounts" }, { "not": { "field": "Microsoft.Storage/storageAccounts/publicNetworkAccess", "in": [ "Disabled", "SecuredByPerimeter" ] } } ] }, "then": { "effect": "[parameters('effect')]" } }, "versions": [ "1.1.0", "1.0.1" ] }, "id": "/providers/Microsoft.Authorization/policyDefinitions/b2982f36-99f2-4db5-8eff-283140c09693", "name": "b2982f36-99f2-4db5-8eff-283140c09693" }