0

Alerts on Failed Azure Logic Apps

When working on and maintaining Logic Apps, you want to be notified if a certain action or complete Logic App (workflows) fails. Setting this up can be done by using Azure Monitoring.

Create Alert

By following the below steps you will create an Alert on your Logic App and specify when this alert will be triggered.

  1. Open the Azure portal and navigate to the Logic App for which an alert needs to be specified.
  2. Within the menu blade click on “Alert Rules”.

Settings Blade

  1. A list of currently configured alerts on the resource will be opened.
  2. For specifying a new alert click on “Add metric alert” at the top of the screen.

image

  1. On the “Add Rule” blade that appears you will need to fill in the correct information. The most important information is prefilled. Prefilling is done regarding the context we created the alert in. Besides the resource that is prefilled it is important to fill in the following information:
      • Metric: Example of metrics that are available:
        • Run latency: The average time between when a run starts an when it ends
        • Run rate: How many runs start per second
        • Run success latency: The average time between start and end, but only for successful runs
        • Run success percentage: The number of successful runs divided by the total
        • Runs cancelled: The number of runs you’ve cancelled
        • Runs completed: The number of completed runs, irrespective of status
        • Runs failed: The number of runs that failed
        • Runs started: The number of runs that started in that minute
        • Runs succeeded: The number of runs that completed successfully
        • Actions failed: The number of actions failed.
      • Condition: Set it to “Greater than or equal to” this will make sure you will receive an alert when there is 1 failure.
      • Threshold: Specify the value 1
      • Period: The period of time in which you would like to check the condition.

Add Rule

  1. Press “OK”. To save the rule.

Now that the rule is saved the list of alerts will be shown. From this list you can monitor the alerts and check the status as shown in the image below.

Alerts

The Alert

As a result of configuring the rule the filled in users and the owners will receive a alert when it is triggered. The alert it self will look similar to the below e-mail.

Azure Alert

Related Posts

Azure DevOps Automation A couple of weeks ago the rename / rebranding of Visual Studio Team Services to Azure DevOps was announced. The rebranding is a great step forward int...
AKS (Kubernetes) and no connection could be made because the target machine acti... A client of my had an error while connecting to different resources within their Kubernetes cluster in Azure (AKS). Kubectl error On the kubectl com...
Kubernetes (AKS) attached to Azure Storage (Files) Kubernetes (AKS) can be used for many situations. For a client we needed to make files available trough a Kubernetes Pod. The files needed to be share...
Resource Group deployment via ARM templates When deploying an Azure Resource Manager (ARM) template you have to create a resource group within Azure. To deploy a template via script your script ...
Azure Managed Service Identity and Local Development Instead of storing user credentials of an external system in a configuration file, you should store them in the Azure Key Vault. Before MSI (Managed S...
The securitydata Azure resource group Most of the times companies have rules in place for managing their Azure environment. The main rules that should be in place are “Azure Policies” and ...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.