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.
updated Azure NetApp Files recommendations (#308)
Co-authored-by: Sean Luce (NETAPP INC) <[email protected]> Co-authored-by: Eric Henry <[email protected]>
- Loading branch information
1 parent
326b2bd
commit 2c8a7a0
Showing
12 changed files
with
177 additions
and
48 deletions.
There are no files selected for viewing
183 changes: 150 additions & 33 deletions
183
docs/content/services/storage/azure-netapp-files/_index.md
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
docs/content/services/storage/azure-netapp-files/code/anf-10/anf-10.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
// cannot-be-validated-with-arg |
1 change: 1 addition & 0 deletions
1
docs/content/services/storage/azure-netapp-files/code/anf-11/anf-11.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
// cannot-be-validated-with-arg |
1 change: 1 addition & 0 deletions
1
docs/content/services/storage/azure-netapp-files/code/anf-12/anf-12.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
// cannot-be-validated-with-arg |
2 changes: 1 addition & 1 deletion
2
docs/content/services/storage/azure-netapp-files/code/anf-2/anf-2.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
2 changes: 1 addition & 1 deletion
2
docs/content/services/storage/azure-netapp-files/code/anf-3/anf-3.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
6 changes: 5 additions & 1 deletion
6
docs/content/services/storage/azure-netapp-files/code/anf-4/anf-4.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 +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 |
11 changes: 3 additions & 8 deletions
11
docs/content/services/storage/azure-netapp-files/code/anf-5/anf-5.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,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 |
4 changes: 2 additions & 2 deletions
4
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,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 |
11 changes: 10 additions & 1 deletion
11
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 +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 |
2 changes: 1 addition & 1 deletion
2
docs/content/services/storage/azure-netapp-files/code/anf-8/anf-8.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 +1 @@ | ||
// under-development | ||
// cannot-be-validated-with-arg |
1 change: 1 addition & 0 deletions
1
docs/content/services/storage/azure-netapp-files/code/anf-9/anf-9.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
// cannot-be-validated-with-arg |