Create Metric Alert Rule in Azure
Hi there ๐๐,Today, I was working on my Logic App workflow and noticed something frustratingโโโmy workflows were inconsistently succeeding and failing. To keep track of this, I headed over to Log Analytics to monitor the workflow, but I quickly realized that manually running queries every time was becoming a hassle.
So, I decided to set up a failure alert for my workflow. This way, I no longer need to constantly monitor the status. Instead, whenever a failure occurs, Iโll receive an email alert, ensuring Iโm always informed without the extra effort. Letโs see how to create an alert.
Prerequisites:
- Create your Logic app workflow โ I have shared in my previous post steps to create Logic app Workflow ๐๐ป๐๐ปclick here
- To monitor the Workflow in Log Analytics follow the steps ๐๐ป๐๐ป here
Steps to generate an Alert:
Step1: Go to the Log Analytics under monitoring section click on โAlertsโ.

Step 2: Then click Create and select Alert rules

Step 3: Then select Custom log search in Signal name

Step 4: Then fill the condition section like this
First write the query for which you want to generate the log alert.
Then fill the below sections


It will give you some preview like this.

Step 5: Then go to the action section and select โCreate action groupโ

You can give any action group name and display name

Notification section is like where we will be sending the notification through email or by SMS. If thereโs any trigger failure.

give the email as per and name as well. Then after filling select create.

Step 6: Then go to the Details section of alert rule and give Alert rule name. Then create the alert rule.

Then you can receive email alert like this as an example

You can effortlessly create a variety of alerts tailored to your preferences, allowing you to monitor the status of any resources you wish to track
Thanks for stopping by! Your visit means a lot. Please Follow me๐ Stay tuned for more content. Exciting stuff coming your way soon! ๐ #StayTuned.
Post Comment
You must be logged in to post a comment.