amyy
amyy

Reputation: 191

email alerts for Azure Logic app runs failed

I want an email notification for every logic app run with Failed status like below screenshot. enter image description here

I tried to configure Runs Failed alerts in logic app but things are not very clear to me. what should be the excect entry for Threshold value, Operator , aggression type, Period and frequency to get alert notification on every failed run. enter image description here

Upvotes: 3

Views: 3411

Answers (1)

Hury Shen
Hury Shen

Reputation: 15724

For this requirement, I think you can choose Static in "Threshold" and set condition as Great than Count 0. In "Evaluated based on", you can set 5 minutes as "Aggregation granularity (Period)" and set 5 minutes as "Frequency of evaluation". Shown as below screenshot:

enter image description here

The "Evaluated based on" you choose as 24hours and every 5 minutes is not particularly good. Because once the alert triggered, its "Monitor condition" will become "fired", and if it hasn't been solved, the alert will not be triggered again.(For example, your logic failed on 1:00, the alert will be triggered in 5 minutes. But it will not be triggered again if there is a failure during the last 24 hour when evaluate every 5 minutes).

By the way, you can also test it by yourself. You can create a logic app as below, it is allowed to be saved and will fail when run it.

enter image description here

Upvotes: 4

Related Questions