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
2024-06-28T03:14:53.31+00:00

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.
2,960 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Noga Lavi Mendes 1 Reputation point Microsoft Employee
    2024-07-02T07:42:58.51+00:00

    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