Hi @Nils Siegfried ,
Thanks for the insights,
For a rule group we can write multiple conditions for the group as follows, and this will be applicable for different set of rules
Can you please try this and see how it goes
resource "azurerm_monitor_alert_processing_rule_action_group" "events" {
name = "events-action-group"
resource_group_name = var.resource_group_name
location = var.location
action_group_id = azurerm_monitor_action_group.example.id
condition {
alert_rule_id {
operator = "Equals"
values = [ azurerm_monitor_alert_prometheus_rule_group.ServiceDown.id ]
}
}
condition {
alert_rule_id {
operator = "NotEquals"
values = [ azurerm_monitor_alert_prometheus_rule_group.NewInstanceRunning.id ]
}
}
}