-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
439ec18
commit 8b7b8f9
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
azure-resources/DocumentDB/databaseAccounts/kql/921631f6-ed59-49a5-94c1-f0f3ececa580.kql
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,18 @@ | ||
// Azure Resource Graph Query | ||
// Query to find Azure Cosmos DB accounts that do not utilize availability zones and are deployed in availability-zone supported regions | ||
Resources | ||
| where type == "microsoft.documentdb/databaseaccounts" | ||
| where properties.capabilities !has_cs 'EnableServerless' | ||
| project recommendationId='921631f6-ed59-49a5-94c1-f0f3ececa580', name, id, tags, locations=properties.locations | ||
| mv-expand locations | ||
| where not(locations.isZoneRedundant) //filter out already AZ enabled regions | ||
| extend location=tostring(locations.locationName) | ||
| project-away locations | ||
| where location in ( | ||
'Australia East', 'Brazil South', 'Canada Central', 'Central India', 'Central US', | ||
'China North 3', 'East Asia', 'East US', 'East US 2', 'France Central', | ||
'Germany West Central', 'Israel Central', 'Italy North', 'Japan East', 'Japan West', | ||
'Korea Central', 'Mexico Central', 'New Zealand North', 'North Europe', 'Norway East', | ||
'Poland Central', 'Qatar Central', 'South Africa North', 'South Central US', 'Southeast Asia', | ||
'Spain Central', 'Sweden Central', 'Switzerland North', 'UAE North', 'UK South', | ||
'US Gov Virginia', 'West Europe', 'West US 2', 'West US 3') // filter out regions unsupported for AZs |