Get started with Opsgenie as a user
Learn how to configure your profile, get notifications from Opsgenie and view on-call schedules.
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.
When an alert is created in Azure Autoscale, an alert is created in Opsgenie automatically through the integration.
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,
Go to your team’s dashboard from Teams,
Select Integrations, and select Add integration.
Follow the rest of the steps to complete the integration.
Go to Settings > Integrations. Search for Azure Autoscale and select Add.
Specify who is notified of Azure Autoscale alerts using the Responders field. Auto-complete suggestions are provided as you type.
Copy the integration URL which includes Opsgenie endpoint as well as the API key.
Click Save Integration.
Log in to Azure portal.
Select Autoscale under the "MONITORING" section.
3. Select the resource to auto scale.
4. Enable autoscale.
5. Enter autoscale settings for the selected resource.
6. Define Scale rules.
7. Save settings and Click Notify then Paste the URL from Opsgenie’s Azure Autoscale integration into the Webhook field and save.
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"
}
Was this helpful?