Integrate with Microsoft Azure Resource Health
What does the integration offer?
Use the Azure Resource Health Integration to forward Azure Resource Health alerts to Compass. Compass determines the right people to notify based on on-call schedules using email, text messages (SMS), phone calls, iOS and Android push notifications, and escalates alerts until the alert is acknowledged or closed.
How does the integration work?
When a Resource Health alert is created in Azure, an alert is automatically created in Compass. The alert is closed in Compass if the Resource Health alert is closed in Azure.
Set up the integration
Azure Resource Health is an API-based integration. Setting it up involves the following steps:
Add an Azure Resource Health integration in Compass
Configure the integration in Azure Resource Health
Add an Azure Resource Health integration
In this release, only incoming integrations are fully supported in the Standard plan, at a team level. To use outgoing integrations or the outgoing part of bidirectional integrations, upgrade to a higher subscription plan. There may be restrictions on how you can create and apply integration rules as well.
You can add this integration only from your team’s operations page. Adding an integration from your team’s operations page makes your team the owner of the integration. This means Compass only assigns the alerts received through this integration to your team.
To add an Azure Resource Health integration in Compass, complete the following steps:
Go to your team’s operations page.
On the left navigation panel, select Integrations and then Add integration.
Run a search and select “Azure Resource Health”.
On the next screen, enter a name for the integration.
Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.
Select Continue.
The integration is saved at this point.Expand the Steps to configure the integration section and copy the integration URL generated for your account.
You will use this URL while configuring the integration in Azure later.Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
Configure the integration in Azure Resource Health
To configure the integration in Azure Resource Health, complete the following steps:
In the Azure Portal, select Browse.
Select Service Health.
In the Resource Health section, select Resource Health.
Open Add resource health alert.
Add conditions for filtering alerts.
Go to the Actions tab.
Select Create Action Group.
While adding actions, select Webhook for the action type.Paste the integration URL copied from Compass into URI.
Enable the common alert schema if required.
Save the changes for the new action group.
Save the changes for the alert.
Sample payload
(in JSON format)
{
"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"
}
}
}
}