Skip to content

Commit

Permalink
Refactor alert settings condition to use 'anyOf' for replication and …
Browse files Browse the repository at this point in the history
…failover issues
  • Loading branch information
arjenhuitema committed Sep 16, 2024
1 parent a78db5e commit 831e6a6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions services/RecoveryServices/vaults/Modify-RSV-ASRHealth-Alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@
"notIn": "[[parameters('MonitorDisableTagValues')]"
},
{
"field": "Microsoft.RecoveryServices/vaults/monitoringSettings.azureMonitorAlertSettings.alertsForAllReplicationIssues",
"notEquals": "Enabled"
},
{
"field": "Microsoft.RecoveryServices/vaults/monitoringSettings.azureMonitorAlertSettings.alertsForAllFailoverIssues",
"notEquals": "Enabled"
"anyOf": [
{
"field": "Microsoft.RecoveryServices/vaults/monitoringSettings.azureMonitorAlertSettings.alertsForAllReplicationIssues",
"notEquals": "Enabled"
},
{
"field": "Microsoft.RecoveryServices/vaults/monitoringSettings.azureMonitorAlertSettings.alertsForAllFailoverIssues",
"notEquals": "Enabled"
}
]
}
]
},
Expand Down Expand Up @@ -101,4 +105,4 @@
}
}
}
}
}

0 comments on commit 831e6a6

Please sign in to comment.