Configure Azure events transform script

Integrate Microsoft Azure with Event Management, using an event transform script to process event messages.

Before you begin

Role required: evt_mgmt_admin
Activate this endpoint to enable receiving Azure events in Event Management, which works without security authentication:
  1. Navigate to Scripted Web Services > Scripted Rest APIs.
  2. Locate and click the Inbound Event script.
  3. In the Resources area, click inbound event azure.
  4. Select Active and then click Update.

About this task

When an Azure event message arrives, Event Management:
  • Extracts information from the original Azure event message to populate required event fields.
  • Use the URL in this format: https://{Instance-name}.service-now.com/api/global/em/inbound_event_azure
These event rules are provided with the base system:
Event rule Description
Azure database binding Bind Azure database events, other than SQL and MSSQL, to the “Cloud database” CI.
Azure host binding Bind Azure events on either the host or VM to the host (Hardware) CI.
Azure MSSQL binding Bind Azure MSSQL events to the “Cloud database” CI.
Azure SQL binding Bind Azure SQL events to the “Cloud database” CI.
Azure vm binding

By default, this event rule is disabled.

Bind Azure events on either the host or VM to the “Virtual Machine Instance” CI.

To enable this rule, first disable the "Azure host binding” rule.

Azure WS binding Bind Azure Web Server events to the “Cloud WebServer” CI.

Procedure

  1. In Azure, create alert rules.
  2. In the Webhook column, specify the endpoint URL in the format: https://{Instance-name}.service-now.com/api/global/em/inbound_event_azure. For example:
  3. Navigate to Event Management > Event Listener (Push) > Listener Transform Scripts.
  4. Click Azure Events Transform Script. Modify the script, as required. This script transforms the event messages collected from Azure into the event form fields.
  5. Click Update.