Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
fixed typo and updated KQL issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Luce (NETAPP INC) committed Mar 27, 2024
1 parent 0668a8b commit 22394d7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/content/services/storage/azure-netapp-files/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Note: A volume can be replicated via cross-zone replication (CZR) or cross-regio

**Resources**

- [Cross-zone replication of Azure NetApp Files volumes | Microsoft Learn](https://learn.microsoft.com/azure/azure-netapp-files/cross-region-replication-introduction)
- [Cross-region replication of Azure NetApp Files volumes | Microsoft Learn](https://learn.microsoft.com/azure/azure-netapp-files/cross-region-replication-introduction)

**Resource Graph Query**

Expand Down
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
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

0 comments on commit 22394d7

Please sign in to comment.