Create Activity Log Alerts on Service Notifications

Overview

This article shows you how to set up activity log alerts for service health notifications using the Azure portal.

You can receive an alert when Azure sends service health notifications to your Azure subscription.
You can configure the alert based on:

  • The class of service health notification (Incident, Maintenance, Information, etc.)
  • The service(s) affected
  • The region(s) affected
  • The status of the notification (Active vs. Resolved)
  • The level of the notifications (Informational, Warning, Error)

You can also the configure who the alert should be sent to:

  • Select an existing Action Group
  • Create a new Action Group (that can be later used for future alerts)

You can learn more about Action Groups here

For information on configuring service health notification alerts using Azure Resource Manager templates: Resource Manager templates

Create an alert on a service health notification for a new action group with the Azure Portal

  1. In the portal, navigate to the Monitor service

    Monitor

  2. Click the Monitor option to open the Monitor blade. It first opens to the Activity log section.

  3. Now click on the Alerts section.

    Alerts

  4. Select the Add activity log alert command and fill in the fields

    Add-Alert

  5. Name your activity log alert, and provide a Description.

    Add-Alert-New-Action-Group

  6. The Subscription is the one the Activity log alert will be saved in. It will be auto filled to the subscription you are currently operating under. This is the subscription the alert resource will be deployed to and monitor.

  7. Choose the Resource Group this alert will be associated with in the Subscription.

  8. Under Event Category select the ‘Service Health’ option. Choose for what Service, Region, Type, Status and Level of Service Health Notifications you would like to be notified.

  9. Create a New Action Group by giving it Name and Short Name; the Short Name will be referenced in the notifications sent when this alert fires.

  10. Then, define a list of receivers by providing the receiver’s

    a. Name: Receiver’s name, alias or identifier.

    b. Action Type: Choose to contact the receiver via SMS, Email, or Webhook

    c. Details: Based on the action type chosen, provide a phone number, email address or webhook URI.

  11. Select OK when done to create the alert.

Within a few minutes, the alert is active and triggers as previously described.

For details on the webhook schema for activity log alerts click here

Note

The action group defined in these steps will be reusable, as an existing action group, for all future alert definitions.

Create an alert on a service health notification using an existing action group with the Azure Portal

  1. In the portal, navigate to the Monitor service

    Monitor

  2. Click the Monitor option to open the Monitor blade. It first opens to the Activity log section.

  3. Now click on the Alerts section.

    Alerts

  4. Select the Add activity log alert command and fill in the fields

    Add-Alert

  5. Name your activity log alert, and choose a Description.

    Add-Alert-Existing-Action-Group

  6. The Subscription is the one the Activity log alert will be saved in. It will be auto filled to the subscription you are currently operating under. This is the subscription the alert resource will be deployed to and monitor.

  7. Choose the Resource Group this alert will be associated with in the Subscription.

  8. Under Event Category select the ‘Service Health’ option. Choose for what Service, Region, Type, Status and Level of Service Health Notifications you would like to be notified.

  9. Choose to Notify Via an Existing action group. Select the appropriate action group.

  10. Select OK when done to create the alert.

Within a few minutes, the alert is active and triggers as previously described.

Managing your alerts

Once you have created an alert, it will be visible in the Alerts section of the Monitor service. Select the alert you wish to manage, you will be able to:

  • Edit it.
  • Delete it.
  • Disable or Enable it if you want to temporarily stop of resume receiving notifications for the alert.

Next Steps: