Skip to content

Commit 0df7938

Browse files
authored
Merge branch 'main' into main
2 parents 553f855 + d7ec4c5 commit 0df7938

4 files changed

Lines changed: 33 additions & 5 deletions

File tree

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
// under-development
1+
// Azure Resource Graph Query
2+
// This query will return all regions for which Network Watcher is deployed but Connection Monitor is not deployed
3+
Resources
4+
| where type =~ "microsoft.network/networkwatchers"
5+
| summarize by location, subscriptionId, name, id
6+
| join kind = leftouter (
7+
resources
8+
| where type =~ 'microsoft.network/networkwatchers/connectionmonitors'
9+
| summarize by location, subscriptionId
10+
| project nwlocation = location, nwsubscriptionId = subscriptionId
11+
) on $left.location == $right.nwlocation,
12+
$left.subscriptionId == $right.nwsubscriptionId
13+
| where isnull(nwlocation) or isempty(nwlocation)
14+
| project recommendationId = "1e28bbc1-1eb7-486f-8d7f-93943f40219c", name, id, tags=''
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
// under-development
1+
// Azure Resource Graph Query
2+
// This query will return all regions for which Network Watcher is not deployed
3+
Resources
4+
| where location <> 'global'
5+
| summarize by location, subscriptionId
6+
| project location, subscriptionId
7+
| join kind = leftouter (
8+
resources
9+
| where type =~ "microsoft.network/networkwatchers"
10+
| summarize by location, subscriptionId
11+
| project nwlocation = location, nwsubscriptionId = subscriptionId
12+
) on $left.location == $right.nwlocation,
13+
$left.subscriptionId == $right.nwsubscriptionId
14+
| where isnull(nwlocation) or isempty(nwlocation)
15+
| project recommendationId = "4e133bd0-8762-bc40-a95b-b29142427d73", name = strcat('NetworkWatcher_',location) , id=subscriptionId, tags='', param1 = strcat("missingLocation: ", location)
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
// under-development
2-
1+
// Azure Resource Graph Query
2+
// This query will return Time-To-Live (TTL) for the DNS recordsets. Make sure it is set appropriately to ensure RTOs
3+
dnsresources
4+
| project recommendationId = "3538aa48-c40b-455b-a93b-269fe6e65be2", name, id, tags, param1 = strcat("Time-To-Live: ", tostring(properties.ttl))

azure-resources/Storage/storageAccounts/kql/e6c7e1cc-2f47-264d-aa50-1da421314472.kql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// This query will return all storage accounts that are not using Zone or Region replication
33
Resources
44
| where type =~ "Microsoft.Storage/storageAccounts"
5-
| where location in~ ("australiaeast", "brazilsouth", "canadacentral", "centralindia", "centralus", "eastasia", "eastus", "eastus2", "francecentral", "germanywestcentral", "israelcentral", "italynorth", "japaneast", "japanwest", "koreacentral", "mexicocentral", "newzealandnorth", "northeurope", "norwayeast", "polandcentral", "qatarcentral", "southafricanorth", "southcentralus", "southeastasia", "spaincentral", "swedencentral", "switzerlandnorth", "uaenorth", "uksouth", "westeurope", "westus2", "westus3", "usgovvirginia", "chinanorth3")
65
| where sku.name in~ ("Standard_LRS", "Premium_LRS")
76
| project recommendationId = "e6c7e1cc-2f47-264d-aa50-1da421314472", name, id, tags, param1 = strcat("sku: ", sku.name)
87

0 commit comments

Comments
 (0)