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 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.
When an alert is created in Azure OMS, it creates an alert in Opsgenie.
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 OMS and select Add.
Specify who is notified of Azure OMS alerts using the Responders field. Autocomplete suggestions are provided as you type.
Copy the Webhook URL.
Select Save Integration.
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.
Launch the OMS portal by selecting OMS Portal and on the Overview page, select Log Search.
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.
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.
Note: When adding a custom parameter to the payload, make sure to follow this format:
"customParameter":"§§#customParameterValue§§"
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.
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§§"
}
Was this helpful?