terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
Support for Azure Montior alert enpoint in Event Grid event subscriptions
Is there an existing issue for this?
- [X] I have searched the existing issues
Community Note
- Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Description
Azure Monitor alerts are now supported as a destination in Event Grid event subscriptions. Please add support for this in the azurerm_eventgrid_system_topic_event_subscription
resource.
New or Affected Resource(s)/Data Source(s)
azurerm_eventgrid_system_topic_event_subscription
Potential Terraform Configuration
resource "azurerm_eventgrid_system_topic_event_subscription" "example" {
name = "evgs-example"
system_topic = azurerm_eventgrid_system_topic.example.name
resource_group_name = azurerm_resource_group.example.name
event_delivery_schema = "CloudEventSchemaV1_0"
monitor_alert_endpoint {
description = "Example description"
severity = "Sev3"
action_groups = [
azurerm_monitor_action_group.example.id
]
}
}