• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Microsoft Azure Resource Health

What does Opsgenie offer Azure Resource Health users?

Use Opsgenie’s Azure Resource Health Integration to forward Azure Resource Health alerts to Opsgenie. Opsgenie determines the right people to notify based on on-call schedules- using email, text messages (SMS), phone calls, iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

Functionality of the integration

When a Resource Health alert is created in Azure, an alert is also created in Opsgenie.

Add Azure Resource Health Integration in Opsgenie

You can add this integration from your team dashboard

If you're using Opsgenie's Free or Essentials plan, or if you’re using Opsgenie with Jira Service Management's Standard plan, you can only add this integration from your team dashboard as the Integrations page under Settings is not available in your plan.

Adding the integration from your team dashboard will make your team the owner of the integration. This means Opsgenie will assign the alerts received through this integration to your team only.

To do that,

  1. Go to your team’s dashboard from Teams,

  2. Select Integrations, and select Add integration.

Follow the rest of the steps to complete the integration.

  1. Go to Settings > Integrations. Search for Azure Resource Health and select Add

  2. Specify who is notified of Azure Resource Health alerts using the Responders field. Autocomplete suggestions will be provided as you type.

  3. Copy the URL.

  4. Click Save Integration.

Configuration in Azure Resource Health

  1. In the portal, select Monitor.

  2. In the "Activity log" section, select Alerts.

  3. Select Add activity log alert, and fill in the fields.

  4. In the "Event category" box, select Resource Health.

  5. Under Alert via, select New action group. Enter a name in the Action group name box, and enter a name in the short name box. The short name is referenced in the notifications that are sent when this alert fires.

  6. Under "Actions", Select Webhook as "ACTION TYPE".

  7. Paste the URL copied previously into the "DETAILS" field.

  8. Click OK.

Sample payload

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 { "schemaId": "Microsoft.Insights/activityLogs", "data": { "status": "Activated", "context": { "activityLog": { "channels": "Admin, Operation", "correlationId": "a1be61fd-37ur-ba05-b827-cb874708babf", "eventSource": "ResourceHealth", "eventTimestamp": "2018-09-04T23:09:03.343+00:00", "eventDataId": "2b37e2d0-7bda-4de7-ur8c6-1447d02265b2", "level": "Informational", "operationName": "Microsoft.Resourcehealth/healthevent/Activated/action", "operationId": "2b37e2d0-7bda-489f-81c6-1447d02265b2", "properties": { "title": "Virtual Machine health status changed to unavailable", "details": "Virtual machine has experienced an unexpected event", "currentHealthStatus": "Unavailable", "previousHealthStatus": "Available", "type": "Downtime", "cause": "PlatformInitiated" }, "resourceId": "/subscriptions/<subscription Id>/resourceGroups/<resource group>/providers/Microsoft.Compute/virtualMachines/<resource name>", "resourceGroupName": "<resource group>", "resourceProviderName": "Microsoft.Resourcehealth/healthevent/action", "status": "Active", "subscriptionId": "<subscription Id>", "submissionTimestamp": "2018-09-04T23:11:06.1607287+00:00", "resourceType": "Microsoft.Compute/virtualMachines" } } } }

 

Additional Help