What do you think of PagerDuty

Sending Azure Service Health alerts with PagerDuty using webhooks

  • 2 minutes to read

This article shows you how to set up Azure Service Health notifications through PagerDuty using a webhook. PagerDuty’s custom Microsoft Azure integration type makes it easy to add Service Health alerts to new or existing PagerDuty services.

Create a URL for Service Health integration with PagerDuty

  1. Make sure you have registered your PagerDuty account and are logged in.

  2. Navigate to the section Services (Services) in PagerDuty.

  3. Choose Add New Service (Add a new service) or open an existing service that you have set up.

  4. Choose under Integration settings (Integration settings) the following settings:

    a. Integration type: Microsoft Azure

    b. Integration name: <Name>

  5. Fill in all other mandatory fields and choose Add (Add).

  6. Open this new integration and copy and save the integration url (Integration URL).

Create an alert using PagerDuty in the Azure portal

For a new action group:

  1. Follow steps 1 through 8 in Create a Service Health Notification Alert for a New Action Group Using the Azure Portal.

  2. In the list of Actions The following:

    a. Action type:Webhook

    b. Details: The previously saved PagerDutyIntegration URL.

    c. Surname: Name, alias or identifier of the webhook.

  3. Choose Save (Save) when you have finished creating the alert.

For an existing action group:

  1. In the Azure portal, select the option Monitor out.

  2. Select in the section Settings the option Action groups out.

  3. Find and mark the action group that you want to edit.

  4. Add the following to the list of Actions add:

    a. Action type:Webhook

    b. Details: The previously saved PagerDutyIntegration URL.

    c. Surname: Name, alias or identifier of the webhook.

  5. Choose Save (Save) when you have finished updating the action group.

Test webhook integration through an HTTP POST request

  1. Create the Service Health payload that you want to send. For a sample Service Health webhook payload, see Azure Activity Log Alert Webhooks.

  2. Create an HTTP POST request by doing the following:

  3. You should receive a message that includes the "Event ID".

  4. Go to PagerDuty to verify that your integration has been successfully set up.

Next Steps

Is this page helpful?