Implementing an alert through terraform for the azure frontdoor status.
having an example for the virtual machines
name = "resource_health_alert"
description = "Resource Health Alerts"
resource_group_name = var.resource_group_name
scopes = [var.scope]
criteria {
resource_id = var.resource_id
category = "ResourceHealth"
resource_type = "microsoft.compute/Virtual machines"
resource_group = ""
resource_health {
current = ["Degraded","Unavailable","Unknown"]
previous = ["Available"]
reason = ["PlatformInitiated","UserInitiated","Unknown"]
}
}
action {
action_group_id = var.action_group_id
}
tags = var.tags
}
but looking for the front door proper resource type to trigger an alerts