-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Built-in Policy Release cf19f7a6 (#1327)
Co-authored-by: Azure Policy Bot <azgovpolicy@microsoft.com>
- Loading branch information
1 parent
05094af
commit 5db8926
Showing
5 changed files
with
15,566 additions
and
6 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
...olicies/policyDefinitions/Cosmos DB/Cosmos_NetworkRulesNoAzureDatacenterAccess_Audit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"properties": { | ||
"displayName": "Azure Cosmos DB accounts should not allow traffic from all Azure data centers", | ||
"policyType": "BuiltIn", | ||
"mode": "Indexed", | ||
"description": "Disallow the IP Firewall rule, '0.0.0.0', which allows for all traffic from any Azure data centers. Learn more at https://aka.ms/cosmosdb-firewall", | ||
"metadata": { | ||
"version": "1.0.0", | ||
"category": "Cosmos DB" | ||
}, | ||
"version": "1.0.0", | ||
"parameters": { | ||
"effect": { | ||
"type": "String", | ||
"metadata": { | ||
"displayName": "Policy Effect", | ||
"description": "The desired effect of the policy." | ||
}, | ||
"allowedValues": [ | ||
"Audit", | ||
"Deny", | ||
"Disabled" | ||
], | ||
"defaultValue": "Audit" | ||
} | ||
}, | ||
"policyRule": { | ||
"if": { | ||
"allOf": [ | ||
{ | ||
"field": "type", | ||
"equals": "Microsoft.DocumentDB/databaseAccounts" | ||
}, | ||
{ | ||
"anyOf": [ | ||
{ | ||
"count": { | ||
"field": "Microsoft.DocumentDB/databaseAccounts/ipRules[*]", | ||
"where": { | ||
"field": "Microsoft.DocumentDB/databaseAccounts/ipRules[*].ipAddressOrRange", | ||
"equals": "0.0.0.0" | ||
} | ||
}, | ||
"greaterOrEquals": 1 | ||
}, | ||
{ | ||
"field": "Microsoft.DocumentDB/databaseAccounts/ipRangeFilter", | ||
"contains": "0.0.0.0" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"then": { | ||
"effect": "[parameters('effect')]" | ||
} | ||
}, | ||
"versions": [ | ||
"1.0.0" | ||
] | ||
}, | ||
"id": "/providers/Microsoft.Authorization/policyDefinitions/12339a85-a25c-4f17-9f82-4766f13f5c4c", | ||
"name": "12339a85-a25c-4f17-9f82-4766f13f5c4c" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.