Azure alert rule creation - KQL in query editor is ok but not validated when creating or editing alert rule

Ryan Lee 40 Reputation points
2025-03-11T01:47:55.7533333+00:00

Hi

I am trying to duplicate an alert rule that is currently working within a different tenancy, I have tried to use the same custom log search. This seems to be fine in the editor but when it's copied into the search query textbox it says 'couldn't validate ..'

User's image

Same search is being used in production, so I am uncertain what has been changed.

Would you be able to advise on the steps to resolve this?

Regards

Ryan.

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,502 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vinod Pittala 735 Reputation points Microsoft External Staff
    2025-03-11T05:16:52.2066667+00:00

    Hello Ryan Lee,

    When creating an alert in Azure Monitor, the "traces" table can be used in following scenarios. which often includes application and diagnostic logs.

    • Application Insights: If your application is instrumented with Application Insights, the traces table can store telemetry data that is collected, such as diagnostic messages, custom events.
    • Performance Monitoring: you can set up alerts to monitor application performance metrics, such as response times or throughput.

    So, while choosing the scope, please make sure to use the appropriate scope.

    Over my lab I've selected Application insights as a scope and i was able to create an alert rule.

    FYR, the query has validated successfully in my scenario.

    User's image And i can create an alert for the same. User's imageHence, please select the appropriate scope and try the operation.

    Hope this helps!

    let us know if you have any further queries. I’m happy to assist you further.  

    Please provide your valuable comments

    Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members.

    Thanks.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.