• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Microsoft Azure AutoScale

Microsoft Azure logo

What does Opsgenie offer Azure Autoscale users?

Use Opsgenie’s Azure Autoscale integration to send Azure alerts to Opsgenie’s API with detailed information. Opsgenie acts as a dispatcher for the alerts generated by Azure Autoscale. Opsgenie determines the right people to notify based on on-call schedules and escalations and notifies via email, text messages (SMS), phone calls, push notifications.

Functionality of the integration

When an alert is created in Azure Autoscale, an alert is created in Opsgenie automatically through the integration.

Add Azure Autoscale 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 Autoscale and select Add

  2. Specify who is notified of Azure Autoscale alerts using the Responders field. Auto-complete suggestions are provided as you type.

  3. Copy the integration URL which includes Opsgenie endpoint as well as the API key.

  4. Click Save Integration.

Configuration in Azure

  1. Log in to Azure portal.

  2. Select Autoscale under the "MONITORING" section.

Microsoft Azure monitor

3. Select the resource to auto scale.

4. Enable autoscale.

5. Enter autoscale settings for the selected resource.

Microsoft Azure AutoScale settings

6. Define Scale rules.

Microsoft Azure AutoScale rule

7. Save settings and Click Notify then Paste the URL from Opsgenie’s Azure Autoscale integration into the Webhook field and save.

Microsoft Azure AutoScale settings

Sample payload sent from Azure Autoscale

Create Alert payload:

JSON

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "version": "1.0", "status": "Activated", "operation": "Scale In", "context": { "timestamp": "2016-03-11T07:31:04.5834118Z", "id": "/subscriptions/s1/resourceGroups/rg1/providers/microsoft.insights/autoscalesettings/myautoscaleSetting", "name": "myautoscaleSetting", "details": "Autoscale successfully started scale operation for resource 'MyCSRole' from capacity '3' to capacity '2'", "subscriptionId": "s1", "resourceGroupName": "rg1", "resourceName": "MyCSRole", "resourceType": "microsoft.classiccompute/domainnames/slots/roles", "resourceId": "/subscriptions/s1/resourceGroups/rg1/providers/microsoft.classicCompute/domainNames/myCloudService/slots/Production/roles/MyCSRole", "portalLink": "https://portal.azure.com/#resource/subscriptions/s1/resourceGroups/rg1/providers/microsoft.classicCompute/domainNames/myCloudService", "oldCapacity": "3", "newCapacity": "2" }, "properties": { "key1": "value1", "key2": "value2" } }

This payload is parsed by Opsgenie as:

JSON

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "version":"1.0", "status":"Activated", "operation":"Scale In", "timestamp":"2016-03-11T07:31:04.5834118Z", "id":"/subscriptions/s1/resourceGroups/rg1/providers/microsoft.insights/autoscalesettings/myautoscaleSetting", "name":"myautoscaleSetting", "details":"Autoscale successfully started scale operation for resource 'MyCSRole' from capacity '3' to capacity '2'", "subscription_id":"s1", "resource_group_name":"rg1", "resource_name":"MyCSRole", "resource_type":"microsoft.classiccompute/domainnames/slots/roles", "resource_id":"/subscriptions/s1/resourceGroups/rg1/providers/microsoft.classicCompute/domainNames/myCloudService/slots/Production/roles/MyCSRole", "portal_link":"https://portal.azure.com/#resource/subscriptions/s1/resourceGroups/rg1/providers/microsoft.classicCompute/domainNames/myCloudService", "old_capacity":"3", "new_capacity":"2", "key1":"value1", "key2":"value2" }

Additional Help