This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Sean Luce (NETAPP INC)
committed
Mar 27, 2024
1 parent
0668a8b
commit 22394d7
Showing
3 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
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
14 changes: 6 additions & 8 deletions
14
docs/content/services/storage/azure-netapp-files/code/anf-6/anf-6.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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
// This Resource Graph query will return all Azure NetApp Files volumes without cross-region replication. | ||
resources | ||
| where type =~ "microsoft.netapp/netappaccounts/capacitypools/volumes" | ||
| extend NetAC0 = tostring(split(name,'/')[0]) | ||
| join kind=leftouter (resources | ||
| where type =~ "microsoft.netapp/netappaccounts/capacitypools/volumes" | ||
| extend NetAC1 = tostring(split(name,'/')[0]) | ||
| project id,NetAC1,remid=tostring(properties.dataProtection.replication.remoteVolumeResourceId)) on $left.id == $right.remid | ||
| where properties.volumeType != 'DataProtection' and NetAC0 == NetAC1 | ||
| project recommendationId = "ANF-6", name, id, tags | ||
| where type == "microsoft.netapp/netappaccounts/capacitypools/volumes" | ||
| extend remoteVolumeRegion = properties.dataProtection.replication.remoteVolumeRegion | ||
| extend volumeType = properties.volumeType | ||
| extend replicationType = iff((remoteVolumeRegion == location), "CZR", iff((remoteVolumeRegion == ""),"n/a","CRR")) | ||
| where replicationType != "CRR" and volumeType != "DataProtection" | ||
| project recommendationId = "ANF-6", name, id, tags, replicationType |
14 changes: 6 additions & 8 deletions
14
docs/content/services/storage/azure-netapp-files/code/anf-7/anf-7.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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
// This Resource Graph query will return all Azure NetApp Files volumes without cross-zone replication. | ||
resources | ||
| where type =~ "microsoft.netapp/netappaccounts/capacitypools/volumes" | ||
| extend NetAC0 = tostring(split(name,'/')[0]) | ||
| join kind=leftouter (resources | ||
| where type =~ "microsoft.netapp/netappaccounts/capacitypools/volumes" | ||
| extend NetAC1 = tostring(split(name,'/')[0]) | ||
| project id,NetAC1,remid=tostring(properties.dataProtection.replication.remoteVolumeResourceId)) on $left.id == $right.remid | ||
| where properties.volumeType != 'DataProtection' and NetAC0 != NetAC1 | ||
| project recommendationId = "ANF-7", name, id, tags | ||
| where type == "microsoft.netapp/netappaccounts/capacitypools/volumes" | ||
| extend remoteVolumeRegion = properties.dataProtection.replication.remoteVolumeRegion | ||
| extend volumeType = properties.volumeType | ||
| extend replicationType = iff((remoteVolumeRegion == location), "CZR", iff((remoteVolumeRegion == ""),"n/a","CRR")) | ||
| where replicationType != "CZR" and volumeType != "DataProtection" | ||
| project recommendationId = "ANF-7", name, id, tags, replicationType |