diff --git a/docs/content/services/storage/azure-netapp-files/_index.md b/docs/content/services/storage/azure-netapp-files/_index.md index 443f4012..23c2ba11 100644 --- a/docs/content/services/storage/azure-netapp-files/_index.md +++ b/docs/content/services/storage/azure-netapp-files/_index.md @@ -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** diff --git a/docs/content/services/storage/azure-netapp-files/code/anf-6/anf-6.kql b/docs/content/services/storage/azure-netapp-files/code/anf-6/anf-6.kql index d0fe698c..54dbd52d 100644 --- a/docs/content/services/storage/azure-netapp-files/code/anf-6/anf-6.kql +++ b/docs/content/services/storage/azure-netapp-files/code/anf-6/anf-6.kql @@ -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 diff --git a/docs/content/services/storage/azure-netapp-files/code/anf-7/anf-7.kql b/docs/content/services/storage/azure-netapp-files/code/anf-7/anf-7.kql index eb50b5c5..0e24bc7b 100644 --- a/docs/content/services/storage/azure-netapp-files/code/anf-7/anf-7.kql +++ b/docs/content/services/storage/azure-netapp-files/code/anf-7/anf-7.kql @@ -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