• 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 Settings → Integrations. Search for Azure OMS 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 OMS alerts using the Responders field. Autocomplete 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 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§§" }

Last modified on Aug 3, 2021
Cached at 10:20 PM on Oct 24, 2021 |

Additional Help