Integrate Azure Monitor with OAuth authentication
Integrate Microsoft Azure with Event Management by authenticating Azure V1 or V2 tokens in the Azure Monitor.
Before you begin
Ensure that the Event Management Connectors (sn_em_connector) plugin is installed on the ServiceNow AI Platform instance.
On the Azure portal, alert correlation rules are defined through the Correlate alerts setting within Alert Processing Rules. When Correlate alerts is assigned on the Azure portal, the Azure Monitor alerts received on the ServiceNow® instance within 60 minutes are grouped using tag based alert clustering.
Roles required: evt_mgmt_integration, evt_mgmt_admin, web_service_admin, and oauth_admin
About this task
Configure the Event Management environment for the collection of events from Azure Monitor. In your Azure Monitor portal, set your ServiceNow AI Platform instance as the rest endpoint using V1 or V2 tokens.
Procedure
-
In the Azure Monitor portal:
-
Perform app registration and expose an API.
For more information about registering an app and exposing an API in Azure, see https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-expose-web-apis.
-
Create an action group with a secure webhook, and provide the rest endpoint as
https://<instance-name>.service-now.com/api/sn_em_connector/em/inbound_event?source=azuremonitor.Note: If you have multiple tenants on the Azure portal and you want to use bidirectional functionality to acknowledge, close, or reopen an alert on the Azure Portal, then the URL for the secure webhook has to be in the following format:
https://<instance-name>.service-now.com/api/sn_em_connector/em/inbound_event?source=azuremonitor&event_class=<new_connector_instance_name>. The <new_connector_instance_name> is the new Azure pull connector instance that you need to create for each tenant with other Azure service principal credentials. To know how to create the pull connector, see Configure Azure Monitor Bi-directional connector.For servicenowservices.com instances, the rest endpoint has to be
https://<instance-name>.servicenowservices.com/api/sn_em_connector/em/inbound_event?source=azuremonitor&x-sn-apikey=<api-key>.For more information about adding a secure webhook to an action group, see https://docs.microsoft.com/en-us/azure/azure-monitor/platform/action-groups.
-
Navigate to Monitor, select Alertsand then select the Alert rules tab.
-
In the Secure Webhook section, make sure that Yes is selected for the Enable the common alert schema option.
-
Add the action group with the secure webhook to an alert rule.
-
-
In the Azure Monitor portal, verify which Azure token is in use by your registered application.
-
Navigate to App Registration, and select the registered application.
-
In the Manage section, click Manifest.
-
In the editor screen, select the Microsoft Graph App Manifest tab and locate the requestedAccessTokenVersion parameter or select the AAD Graph App Manifest tab and locate the accessTokenAcceptedVersion parameter.
If the value of requestedAccessTokenVersion or accessTokenAcceptedVersion is 2, the integration must use V2 tokens.
If the value of requestedAccessTokenVersion or accessTokenAcceptedVersion is 1 or null, the integration must use V1 tokens.
-
-
In your ServiceNow AI Platform instance, ensure that the ServiceNow user is assigned with the correct Application (client) ID or Application ID URI.
Also ensure the relevant ServiceNow sys_user is assigned the evt_mgmt_integration role.
-
Navigate to System Security > Users and groups > Users.
Note: To ensure proper authentication, use the least privileged user with the evt_mgmt_integration role, rather than a high privileged user.
-
Verify that the Source field for the ServiceNow sys_user is populated with the correct Application (client) ID or Application ID URI, as defined in the Azure Monitor portal.
If the application is using an Azure V1 token, the Source field must be populated with the Application ID URI of the registered application. If the application is using an Azure V2 token, the Source field must be populated with the Application (client) ID of the registered application.
If the Source field is not displayed, change the form layout to display this field. Click the context menu icon ([Omitted image "context-menu-icon.png"] Alt text: Context menu icon) and select Configure > Form Layout. Move Source to the Selected list.
Note: If your ServiceNow AI Platform instance version is earlier than Paris Patch 2 or Orlando Patch 9, the Source field value must be enclosed in square brackets. For example,
[api://azuretest].
-
-
In your ServiceNow AI Platform instance, navigate to Event Management > Integrations > Azure OAuth Config.
-
Click Azure OAuth OIDC Entry and enter the
Client ID.If the registered application is using an Azure V2 token, the
Client IDshould be the same as theApplication (client) IDof the app registrations defined in your Azure Monitor portal.If the registered application is using an Azure V1 token, the
Client IDshould be the same as theApplication ID URIof the app registrations defined in your Azure Monitor portal. This value represents the exposed API. -
In the OAuth OIDC Provider Configuration field, click the info icon ([Omitted image "info.png"] Alt text: Info icon).
-
In the OIDC Provider Configuration window, click Open Record.
[Omitted image "em-azure-authentication.png"] Alt text: OIDC Provider Configuration window
-
Enter the
OIDC Metadata URLaccording to the Azure token used by the registered application, as shown in the following table.
|
Azure token |
OIDC Metadata URL |
|---|---|
|
V2 |
In the OIDC Provider Configuration form, add the following URL to the OIDC Metadata URL field: Ensure that Note: If attempting to integrate Azure Gov Cloud with the ServiceNow Azure Monitor Connector, remember to change the claim value to |
|
V1 |
In the OIDC Provider Configuration form:- In the Claim Name column, change [Omitted image "em-azp.png"] Alt text: Change AZP to APPID Note: If attempting to integrate Azure Gov Cloud with the ServiceNow Azure Monitor Connector, remember to change the claim value to
Ensure that |
Azure Monitor sends a notification to ServiceNow AI Platform using the secure webhook endpoint when an alert rule triggers. In your ServiceNow AI Platform instance, navigate to All Events to see the events. To send alert state changes from the ServiceNow instance to the Azure Portal, enable the Azure Monitor Bi-directional connector. For more information, see Configure Azure Monitor Bi-directional connector.
Parent Topic:Integrate Azure Monitor as an authenticated data source
---
title: Integrate Azure Monitor with OAuth authentication
description: Integrate Microsoft Azure with Event Management by authenticating Azure V1 or V2 tokens in the Azure Monitor.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/event-management/azure-events-authentication.html
release: australia
product: Event Management
classification: event-management
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 5
breadcrumb: [Integrate Azure Monitor as an authenticated data source, Integrate with push connectors, Configure a push connector, Configure Event Management connectors, Event Management Integrations, Configure, Event Management, ITOM AIOps, IT Operations Management]
---
# Integrate Azure Monitor with OAuth authentication
Integrate Microsoft Azure with Event Management by authenticating Azure V1 or V2 tokens in the Azure Monitor.
## Before you begin
Ensure that the Event Management Connectors \(sn\_em\_connector\) plugin is installed on the ServiceNow AI Platform instance.
On the Azure portal, alert correlation rules are defined through the **Correlate alerts** setting within Alert Processing Rules. When **Correlate alerts** is assigned on the Azure portal, the Azure Monitor alerts received on the ServiceNow® instance within 60 minutes are grouped using tag based alert clustering.
Roles required: evt\_mgmt\_integration, evt\_mgmt\_admin, web\_service\_admin, and oauth\_admin
## About this task
Configure the Event Management environment for the collection of events from Azure Monitor. In your Azure Monitor portal, set your ServiceNow AI Platform instance as the rest endpoint using V1 or V2 tokens.
## Procedure
1. In the Azure Monitor portal:
1. Perform app registration and expose an API.
For more information about registering an app and exposing an API in Azure, see [https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-expose-web-apis](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-expose-web-apis).
2. Create an action group with a secure webhook, and provide the rest endpoint as `https://<instance-name>.service-now.com/api/sn_em_connector/em/inbound_event?source=azuremonitor`.
**Note:** If you have multiple tenants on the Azure portal and you want to use bidirectional functionality to acknowledge, close, or reopen an alert on the Azure Portal, then the URL for the secure webhook has to be in the following format: `https://<instance-name>.service-now.com/api/sn_em_connector/em/inbound_event?source=azuremonitor&event_class=<new_connector_instance_name>`. The <new\_connector\_instance\_name> is the new Azure pull connector instance that you need to create for each tenant with other Azure service principal credentials. To know how to create the pull connector, see [Configure Azure Monitor Bi-directional connector](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/event-management/configure-azure-bi-directional-connector.md).
For servicenowservices.com instances, the rest endpoint has to be `https://<instance-name>.servicenowservices.com/api/sn_em_connector/em/inbound_event?source=azuremonitor&x-sn-apikey=<api-key>`.
For more information about adding a secure webhook to an action group, see [https://docs.microsoft.com/en-us/azure/azure-monitor/platform/action-groups](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/action-groups).
3. Navigate to **Monitor**, select **Alerts**and then select the **Alert rules** tab.
4. In the Secure Webhook section, make sure that **Yes** is selected for the **Enable the common alert schema** option.
5. Add the action group with the secure webhook to an alert rule.
2. In the Azure Monitor portal, verify which Azure token is in use by your registered application.
1. Navigate to **App Registration**, and select the registered application.
2. In the Manage section, click **Manifest**.
3. In the editor screen, select the **Microsoft Graph App Manifest** tab and locate the **requestedAccessTokenVersion** parameter or select the **AAD Graph App Manifest** tab and locate the **accessTokenAcceptedVersion** parameter.
If the value of **requestedAccessTokenVersion** or **accessTokenAcceptedVersion** is **2**, the integration must use V2 tokens.
If the value of **requestedAccessTokenVersion** or **accessTokenAcceptedVersion** is **1** or **null**, the integration must use V1 tokens.
3. In your ServiceNow AI Platform instance, ensure that the ServiceNow user is assigned with the correct Application \(client\) ID or Application ID URI.
Also ensure the relevant ServiceNow sys\_user is assigned the evt\_mgmt\_integration role.
1. Navigate to **System Security** > **Users and groups** > **Users**.
**Note:** To ensure proper authentication, use the least privileged user with the evt\_mgmt\_integration role, rather than a high privileged user.
2. Verify that the **Source** field for the ServiceNow sys\_user is populated with the correct Application \(client\) ID or Application ID URI, as defined in the Azure Monitor portal.
If the application is using an Azure V1 token, the **Source** field must be populated with the Application ID URI of the registered application. If the application is using an Azure V2 token, the **Source** field must be populated with the Application \(client\) ID of the registered application.
If the **Source** field is not displayed, change the form layout to display this field. Click the context menu icon \(\[Omitted image "context-menu-icon.png"\] Alt text: Context menu icon\) and select **Configure > Form Layout**. Move **Source** to the Selected list.
**Note:** If your ServiceNow AI Platform instance version is earlier than Paris Patch 2 or Orlando Patch 9, the **Source** field value must be enclosed in square brackets. For example, `[api://azuretest]`.
4. In your ServiceNow AI Platform instance, navigate to **Event Management** > **Integrations** > **Azure OAuth Config**.
5. Click **Azure OAuth OIDC Entry** and enter the `Client ID`.
If the registered application is using an Azure V2 token, the `Client ID` should be the same as the `Application (client) ID` of the app registrations defined in your Azure Monitor portal.
If the registered application is using an Azure V1 token, the `Client ID` should be the same as the `Application ID URI` of the app registrations defined in your Azure Monitor portal. This value represents the exposed API.
6. In the **OAuth OIDC Provider Configuration** field, click the info icon \(\[Omitted image "info.png"\] Alt text: Info icon\).
7. In the OIDC Provider Configuration window, click **Open Record**.
\[Omitted image "em-azure-authentication.png"\] Alt text: OIDC Provider Configuration window
8. Enter the `OIDC Metadata URL` according to the Azure token used by the registered application, as shown in the following table.
<table id="choicetable_rbx_wgs_ymb"><thead><tr><th align="left" id="d519165e492">
Azure token
</th><th align="left" id="d519165e495">
OIDC Metadata URL
</th></tr></thead><tbody><tr><td id="d519165e501">
**V2**
</td><td>
In the OIDC Provider Configuration form, add the following URL to the **OIDC Metadata URL** field:`https://login.microsoftonline.com/<tenant-id>/v2.0/.well-known/openid-configuration`
Ensure that `<tenant-id>` is replaced with the correct Azure Tenant ID.
**Note:** If attempting to integrate Azure Gov Cloud with the ServiceNow Azure Monitor Connector, remember to change the claim value to `f1f34126-d4ef-40e1-ad4b-bf5d47b4860d`.
</td></tr><tr><td id="d519165e528">
**V1**
</td><td>
In the OIDC Provider Configuration form:- In the Claim Name column, change `azp` to `appid`.
\[Omitted image "em-azp.png"\] Alt text: Change AZP to APPID
**Note:** If attempting to integrate Azure Gov Cloud with the ServiceNow Azure Monitor Connector, remember to change the claim value to `f1f34126-d4ef-40e1-ad4b-bf5d47b4860d`.
- In the **OIDC Metadata URL** field, add the following URL: `https://login.microsoftonline.com/<tenant-id>/.well-known/openid-configuration`
Ensure that `<tenant-id>` is replaced with the correct Azure Tenant ID.
</td></tr></tbody>
</table>
## Result
Azure Monitor sends a notification to ServiceNow AI Platform using the secure webhook endpoint when an alert rule triggers. In your ServiceNow AI Platform instance, navigate to **All Events** to see the events. To send alert state changes from the ServiceNow instance to the Azure Portal, enable the Azure Monitor Bi-directional connector. For more information, see [Configure Azure Monitor Bi-directional connector](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/event-management/configure-azure-bi-directional-connector.md).
**Parent Topic:**[Integrate Azure Monitor as an authenticated data source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/event-management/azure-integration.md)
| title | Integrate Azure Monitor with OAuth authentication |
| description | Integrate Microsoft Azure with Event Management by authenticating Azure V1 or V2 tokens in the Azure Monitor. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/it-operations-management/event-management/azure-events-authentication.html |
| release | australia |
| product | Event Management |
| classification | event-management |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 5 |
| breadcrumb | Integrate Azure Monitor as an authenticated data sourceIntegrate with push connectorsConfigure a push connectorConfigure Event Management connectorsEvent Management IntegrationsConfigureEvent ManagementITOM AIOpsIT Operations Management |