• 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

  1. Go to Settings → Integrations. Search for Azure Autoscale and select Add

Under the Free and Essentials plans, the tabs under the Team dashboard are limited to Main, Integrations, Members, and Activity Stream.

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

Did you know that you can also add this integration from your team dashboard? 

If you want your team to be the owner of this integration, add it from your team dashboard. Opsgenie will assign the alerts received through this integration to your team only.

To do that;

  1. Go to Teams,

  2. Find your team and select it to go to your team dashboard,

  3. From your team navigation, select Integrations,

  4. Select Add integration.

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

4. Click Save Integration.

Microsoft Azure AutoScale 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:


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:


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" }

Last modified on Aug 3, 2021
Cached at 8:05 PM on Oct 27, 2021 |

Additional Help