Configure Azure Monitor alerts for Application Gateway

Azure Monitor alerts proactively notify you when important conditions are found in your monitoring data. They allow you to identify and address issues in your system before your customers notice them. For more information about Azure Monitor Alerts for Application Gateway, see Monitoring Azure Application Gateway.

Configure alerts using ARM templates

You can use ARM templates to quickly configure important alerts for Application Gateway. Before you begin, consider the following details:

  • Azure Monitor alert rules are charged based on the type and number of signals it monitors. See Azure Monitor pricing before deploying for pricing information. Or you can see the estimated cost in the portal after deployment: Image showing application gateway pricing details
  • You need to create an Azure Monitor action group in advance and then use the Resource ID for as many alerts as you need. Azure Monitor alerts use this action group to notify users that an alert has been triggered. For more information, see Create and manage action groups in the Azure portal.

Tip

You can manually form the ResourceID for your Action Group by following these steps.

  1. Select Azure Monitor in your Azure portal.
  2. Open the Alerts page and select Action Groups.
  3. Select the action group to view its details.
  4. Use the Resource Group Name, Action Group Name and Subscription Info here to form the ResourceID for the action group as shown here:
    /subscriptions/<subscription-id-from-your-account>/resourcegroups/<resource-group-name>/providers/microsoft.insights/actiongroups/<action-group-name>
  • The templates for alerts described here are defined generically for settings like Severity, Aggregation Granularity, Frequency of Evaluation, Condition Type, and so on. You can modify the settings after deployment to meet your needs. See Understand how metric alerts work in Azure Monitor for more information.
  • The templates for metric-based alerts use the Dynamic threshold value with High sensitivity. You can choose to adjust these settings based on your needs.

ARM templates

The following ARM templates are available to configure Azure Monitor alerts for Application Gateway.

Alert for Backend Response Status as 5xx

Deploy to Azure

This notification is based on Metrics signal.

Alert for average Unhealthy Host Count

Deploy to Azure

This notification is based on Metrics signal.

Alert for Backend Last Byte Response Time

Deploy to Azure

This notification is based on Metrics signal.

Alert for Key Vault integration issues

Deploy to Azure

This notification is based on its Azure Advisor recommendation.

Next steps