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

Commit

Permalink
updated Azure NetApp Files recommendations (#308)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Luce (NETAPP INC) <[email protected]>
Co-authored-by: Eric Henry <[email protected]>
  • Loading branch information
3 people authored Mar 26, 2024
1 parent 326b2bd commit 2c8a7a0
Show file tree
Hide file tree
Showing 12 changed files with 177 additions and 48 deletions.
183 changes: 150 additions & 33 deletions docs/content/services/storage/azure-netapp-files/_index.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// cannot-be-validated-with-arg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// cannot-be-validated-with-arg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// cannot-be-validated-with-arg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This Resource Graph query will return all NetApp Volumes without Network Feature Standard.
// This Resource Graph query will return all Azure NetApp Files volumes without standard network features.
resources
| where type =~ "microsoft.netapp/netappaccounts/capacitypools/volumes"
| where properties.networkFeatures != "Standard"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This Resource Graph query will return all NetApp Volumes without AVzone defined.
// This Resource Graph query will return all Azure NetApp Files volumes without an availability zone defined.
resources
| where type =~ "microsoft.netapp/netappaccounts/capacitypools/volumes"
| where zones == "[]"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// under-development
// This Resource Graph query will return all Azure NetApp Files volumes without a snapshot policy defined.
resources
where type == "microsoft.netapp/netappaccounts/capacitypools/volumes"
| where properties.dataProtection.snapshot.snapshotPolicyId == ""
| project recommendationId = "ANF-4", name, id, tags
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// This Resource Graph query will return all NetApp Volumes without Cross-Region Replication.
// This Resource Graph query will return all Azure NetApp Files volumes without a backup policy defined.
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
where type == "microsoft.netapp/netappaccounts/capacitypools/volumes"
| where properties.dataProtection.backup.backupPolicyId == ""
| project recommendationId = "ANF-5", name, id, tags
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This Resource Graph query will return all NetApp Volumes without Cross-Zone Replication.
// 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
| where properties.volumeType != 'DataProtection' and NetAC0 == NetAC1
| project recommendationId = "ANF-6", name, id, tags
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
// cannot-be-validated-with-arg. The validation for this recommendation cannot be achieved with an Azure Resource Graph query.
// 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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// under-development
// cannot-be-validated-with-arg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// cannot-be-validated-with-arg

0 comments on commit 2c8a7a0

Please sign in to comment.