Skip to content

Instantly share code, notes, and snippets.

@tyconsulting
Created January 8, 2018 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyconsulting/9e004708f205c6fc84a6612d0dcaeb4a to your computer and use it in GitHub Desktop.
Save tyconsulting/9e004708f205c6fc84a6612d0dcaeb4a to your computer and use it in GitHub Desktop.
Azure Resource Policy to restrict public-facing storage accounts
{
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Storage/storageAccounts"
},
{
"field": "Microsoft.Storage/storageAccounts/networkAcls.defaultAction",
"equals": "Allow"
}
]
},
"then": {
"effect": "deny"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment