Log Search Alert Rule fired when i created it manually on Portal but when i created it by Terraform with the same configuration it not fired

Lam Bui Quang 20 Reputation points

When I create a Log search Alert Rule manually on Azure Portal. It fired alerts perfectly when the condition is met. But when I created a Log search Alert Rule with the same configuration in Terraform. It did not fired alerts when the condition is met

I used azurerm_monitor_scheduled_query_rules_alert_v2 terraform resource

Here is my configuration of the alert i created in Terraform:User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,019 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Noga Lavi Mendes 1 Reputation point Microsoft Employee

    Hi -

    My name is Noga Lavi Mendes and I am the supportability PM lead for Azure Alerts team, as well as responsible for Log Search Alerts and Alert Management Platform.

    I think the best way is to get the rule ID, and check what was different in its config when it was created in the portal vs terraform. 

    You can open a ticket and our team will help you.

    0 comments No comments