RemcoLengers
ServiceNow Employee
ServiceNow Employee

This post describes the simplest method to integrate Azure Monitor into ServiceNow ITOM Event Management

 

The main steps are

 

  1. ServiceNow: Create an integration user in ServiceNow
  2. ServiceNow:  Setup a Azure Monitor integration in the Integration Launchpad (Service Operation Workspace)
  3. Azure Monitor: Setup a Webhook Action in Action Groups

 

Step 1: Create integration user

 

In your ServiceNow instance go to "User Administration -> Users" and create a user with the role "evt_mgmt_integration" and check the "Web service access only" check box. And enter a password. Note the username and password, you'll need it later.

 

(Note: Make sure the password does not contain "!" or "*" or any other character that can break the URL structure, I found "&" and "%" are ok, allthought those are also officially "reserved") (uuencoding may be required but this goes beyond the scope of this blog)

 

RemcoLengers_0-1753864939414.png

Step 2: Setup an Azure Integration in the Service Operation Workspace

 

In your ServiceNow instance, on the menu bar goto "Workspaces -> Service Operation Workspace". And locate the integration launchpad on the left.

RemcoLengers_0-1753865212645.png

On the integration launchpad locate the "Microsoft Azure to instance" tile and click it. This integration sends Event directly to the ServiceNow instance and does not require a MID Server.

RemcoLengers_1-1753865317509.png

 

Enter a "Connector name" and press save (top right) and next (bottom right)

RemcoLengers_0-1753865486391.png

 

Now you use "Copy link to clipboard" and note the link, you'll need it later. Press "Save" and "Activate" (bottom right)

 

RemcoLengers_1-1753865576734.png

 

After clicking "Ok" on the pop-up select "Events". We will watch a little later the test event arrive.

 

RemcoLengers_3-1753865895213.png

 

Step 3: Azure Monitor: Setup a Webhook Action in Action Groups

Log into your Azure portal https://portal.azure.com/

Locate Monitor and Alerts and Action Groups

 

RemcoLengers_1-1753866587991.png

 

 

Create a new Action Group. Select the relevant Resource group. And follow the next steps until the "Actions" step.

RemcoLengers_3-1753867065143.png

Now construct a URL with the integration user and password and the integration URL so it looks similar to this structure:

 

https://username:password@<instancename>.service-now.com/api/sn_em_connector/em/inbound_event?source...

 

RemcoLengers_1-1753868570358.png

 

 

Click "Review +Create" to complete the creation of the Action Group. The select the Action Group you just created and select "Test".

RemcoLengers_1-1753867797951.png

Select the sample alert type "Metric alert - Static threshold" for example (others will work too). And press "Test"

 

RemcoLengers_1-1753867983839.png

 

If all is well, you'll see "Success".

 

RemcoLengers_0-1753869230234.png

 

Returning to the ServiceNow instance.  Press the "Refresh List Events" and see the arrival of the Azure Monitor Alert.

RemcoLengers_3-1753868148027.png

 

Succes!!

 

The same integration but with Oauth 2.0 is documented here

 

2 Comments