• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Microsoft Azure OMS

Azure OMS logo

What does Opsgenie offer Azure OMS users?

Use Opsgenie’s Azure OMS Integration to forward Azure OMS alerts to Opsgenie. Opsgenie determines the right people to notify based on on-call schedules- using email, text messages (SMS), phone calls, iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

Functionality of the integration

When an alert is created in Azure OMS, it creates an alert in Opsgenie.

Add Azure OMS Integration in Opsgenie

  1. Go to Opsgenie's Azure OMS Integration page.

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 OMS alerts using the Teams field. Autocomplete suggestions are provided as you type.

An alternative for Step 1) and Step 2) is to add the integration from the Team Dashboard of the team which will own the integration. To add an integration directly to a team, navigate to the Team Dashboard and open Integrations tab. Click Add Integration and select the integration that you would like to add.

3. Copy the Webhook URL.

4. Click Save Integration.

Azure OMS integration

Configuration in Azure OMS

  1. In the Azure portal, click All services. In the list of resources, type Log Analytics. As you begin typing, the list filters based on your input. Select Log Analytics.

  2. Launch the OMS portal by selecting OMS Portal and on the Overview page, select Log Search.

Azure OMS portal

3. Either create a new log search query or select a saved log search.

4. Click Alert at the top of the page to open the Add Alert Rule screen.

Azure OMS alert

5. Create an alert rule with the following setting:

  • Select Yes for Webhook and No for the other actions.

6. Paste the Webhook URL into the "Webhook URL" field:

7. Select the option to include a custom JSON payload.

Webhook Configuration

The above template used while configuring the webhook must be exactly the same and customizations are not currently supported. Using a different template will cause parsing issues and most probably webhook events will be discarded by the integration.

Azure OMS alert

Sample payload sent from Azure OMS

Create Alert payload:

JSON

1 2 3 4 5 6 7 8 9 10 11 12 { "alertRuleName":"§§#alertrulename§§", "alertThresholdOperator":"§§#thresholdoperator§§", "alertThresholdValue":"§§#thresholdvalue§§", "linkToSearchResults":"§§#linktosearchresults§§", "resultCount":"§§#searchresultcount§§", "searchIntervalEndtimeUtc":"§§#searchintervalendtimeutc§§", "searchIntervalInSeconds":"§§#searchinterval§§", "searchIntervalStartTimeUtc":"§§#searchintervalstarttimeutc§§", "searchQuery":"§§#searchquery§§", "workspaceID":"§§#workspaceid§§" }

Sample alert

Azure OMS sample alert
Last modified on Feb 9, 2021
Cached at 8:53 PM on Apr 10, 2021 |

Additional Help

Ask the Community