Skip to content

Commit

Permalink
Fix "Opt-in to Cross Region Restore for all GRS Azure Recovery Servic…
Browse files Browse the repository at this point in the history
…es vaults" (Azure#188)
  • Loading branch information
tksh164 authored Jun 3, 2024
1 parent 95d3e60 commit 42e88ed
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Azure Resource Graph Query
// Displays all recovery services vaults that do not have cross region restore enabled

resources
| where type == "microsoft.recoveryservices/vaults"
| where properties.properties.enableCrossRegionRestore != true
| project recommendationId = "1549b91f-2ea0-4d4f-ba2a-4596becbe3de", name, id, tags

| where type =~ "Microsoft.RecoveryServices/vaults" and
properties.redundancySettings.standardTierStorageRedundancy =~ "GeoRedundant" and
properties.redundancySettings.crossRegionRestore !~ "Enabled"
| extend
param1 = strcat("CrossRegionRestore: ", properties.redundancySettings.crossRegionRestore),
param2 = strcat("StorageReplicationType: ", properties.redundancySettings.standardTierStorageRedundancy)
| project recommendationId = "1549b91f-2ea0-4d4f-ba2a-4596becbe3de", name, id, tags, param1, param2

0 comments on commit 42e88ed

Please sign in to comment.