Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Overview

What does the integration offer?

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

How does the integration work?

When an alert is created in Azure Autoscale, an alert is automatically created in Jira Service Management through the integration.

Set up the integration

Azure Autoscale is an API-based integration. Setting it up involves the following steps:

  • Add an Azure Autoscale integration in Jira Service Management

  • Configure the integration in Azure Autoscale

Add Azure Autoscale integration

If you're using the Free or Standard plan in Jira Service Management, you can only add this integration from your team’s operations page. To access the feature through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be on Premium or Enterprise plan.

Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.

To add an Azure AutoScale integration in Jira Service Management:

  1. Go to your team’s operations page.

  2. On the left navigation panel, select Integrations and then Add integration.

  3. Run a search and select “Azure AutoScale”.

  4. On the next screen, enter a name for the integration.

  5. Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.

  6. Select Continue.
    The integration is saved at this point.

  7. Expand the Steps to configure the integration section and copy the integration URL, which includes Jira Service Management endpoint and the API key.
    You will use this URL while configuring the integration in Azure later.

  8. 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

  1. In the Azure Portal, select Monitor.

  2. In the SETTINGS section, select AutoScale.

  3. Select the resource for which you want to generate alerts.

  4. Enable AutoScale.

  5. Configure your autoscale settings.

  6. Paste the URL you copied while adding the integration in Jira Service Management into Webhook in the Notify tab.

  7. Save the rule.

Sample payload sent from Azure Autoscale

 Create alert payload (in JSON format)
{
        "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"
        }
}
 Payload parsed by Jira Service Management (in JSON format)
{
   "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"
}

See also

Explore integration types

Explore integration actions

Add integration rules

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.