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

Commit

Permalink
ANF-3: Improve query (#438)
Browse files Browse the repository at this point in the history
Co-authored-by: Dost <[email protected]>
  • Loading branch information
tksh164 and Dost2010 authored Apr 3, 2024
1 parent 25684ce commit ed6cf14
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Azure Resource Graph Query
// 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 == "[]"
| project recommendationId = "ANF-3", name, id, tags
Resources
| where type =~ "Microsoft.NetApp/netAppAccounts/capacityPools/volumes"
| where array_length(zones) == 0 or isnull(zones)
| project recommendationId = "anf-3", name, id, tags

0 comments on commit ed6cf14

Please sign in to comment.