OBLYTECH Logo
OBLYTECH Logo

Configure event collection from Microsoft Azure Monitor

To configure event collection from Microsoft Azure Monitor, prepare Event Management and the MID Server collector, then connect an Azure action group webhook to the MID endpoint. Enable the common alert schema and attach the action group to an alert rule. The MID Server parses incoming JSON with TransformEvents_MidAzureMonitor.

Prepare Event Management before configuring the webhook

Start with the receiving components. The Event Management Connectors plugin, sn_em_connector, must be installed on the instance. Deploy and start the MID Server, configure and start the MID Web Server, and configure and start the MID WebService Event Collector. A running MID Server by itself does not complete those prerequisites.

The role required for this event collection configuration is evt_mgmt_admin. Assign the configuration work to a person with that role, while keeping the MID Web Server authentication details distinct from the person’s interactive ServiceNow access. The webhook uses credentials for the MID Web Server extension.

Before moving into Azure, record the receiving server address, listening port, and intended collector. This gives the Azure administrator a specific destination to configure and gives the ServiceNow administrator a clear receiving component to inspect during testing.

If the event-to-alert relationship is unfamiliar, review the Event Management overview before treating webhook delivery as proof that the full monitoring workflow is ready.

Identify the Azure Monitor MID push connector

In ServiceNow, navigate to Event Management > Integrations > PushConnectors and open Azure Monitor Mid Push Connector. Incoming Azure JSON is parsed through the TransformEvents_MidAzureMonitor script include. Keep that transform name exact when configuring the receiving endpoint; it identifies the processing intended for this integration.

The receiving route is /api/mid/em/inbound_event, with Transform=TransformEvents_MidAzureMonitor supplied as its query parameter. Build the complete webhook destination from the MID Web Server address, its listening port, the MID Web Server username and password, and that route. Use the configured values for the extension rather than assuming the ServiceNow instance address is interchangeable with the MID address.

These are separate pieces of configuration. The address determines where Azure sends the message, the port identifies the listener, the credentials authenticate to the MID Web Server, and the transform identifies how the JSON is parsed. During review, check each piece separately so a correct transform does not conceal an incorrect destination.

This is a push integration: Azure sends the event message to the collector. The guide to Event Management push connectors explains the surrounding connector model when deciding who should own the sending and receiving sides.

Keep a configuration comparison beside the connector review. For example, if Azure is sending to a VM public address but the receiving team is checking a different host, both teams may report healthy components without observing the same delivery attempt. Agree on the destination before examining the incoming JSON. This is a recommended troubleshooting practice, not an additional connector setting.

Check the network path from Azure to the MID listener

Verify that the MID Server IP and receiving REST endpoint are accessible from Microsoft Azure. A successful connection from an administrator’s workstation is insufficient evidence for this check because the sender is Azure. Make the reachability check against the address and port intended for the action group.

One deployment option is to run the MID Server on an Azure VM. In that arrangement, use the VM’s public address for the receiving destination and allow mid_web_Server_port through Azure VM > Networking Settings > Inbound port rules. Match the allowed port to the port configured on the MID Web Server extension.

Treat the network check as a boundary test. First establish that Azure can reach the receiving listener; then investigate authentication and parsing. If the endpoint is unreachable, changing event rules or the transform configuration will not repair the missing path. Record which address and port were tested so the result can be compared with the saved webhook destination.

Confirm the instance release before configuration, because the bi-directional connector and the OAuth steps depend on it. Decide between the Azure VM route with basic authentication and the OAuth route, which sends the secure webhook directly to the ServiceNow instance, before configuration begins.

Configure event collection from Microsoft Azure Monitor

Once the collector and network path are ready, configure the sending side in the Azure Monitor portal. Keep the first alert rule narrow enough that the test message can be recognized in ServiceNow without confusion with unrelated monitoring traffic.

  1. Create an action group that contains a webhook.
  2. Provide the MID receiving endpoint assembled from the extension’s configured address, port, credentials, route, and transform parameter.
  3. In the Webhook section, set Enable the common alert schema to Yes.
  4. Navigate to Alerts > Manage Alert Rules.
  5. Add the action group containing that webhook to the intended alert rule.

The common alert schema setting belongs in the webhook review, alongside the destination. Do not assume that creating an action group establishes the schema setting. Reopen the configured webhook and verify the saved value before using the alert rule to test collection.

The rule-to-action-group association is another distinct check. An action group can be configured while the intended rule still lacks that association. Review the rule that will generate the test notification, then verify that it references the action group containing the MID webhook.

For help planning this work, see ServiceNow implementation.

Validate delivery separately from event processing

Use a controlled alert rule test and follow the message through the configured path. A sensible acceptance check records the Azure rule, its action group, the receiving MID listener, and the event expected in ServiceNow. Keep the expected event recognizable so the team can distinguish a new test from an earlier message.

  • Confirm that the tested rule uses the intended action group.
  • Compare the webhook destination with the receiving extension’s actual address and listening port.
  • Verify the MID Web Server authentication values and the common alert schema selection.
  • Check that the MID WebService Event Collector is running and that the webhook URL ends with ?Transform=TransformEvents_MidAzureMonitor.
  • Inspect the resulting event before evaluating downstream alert handling.

If nothing arrives, work from the sending rule toward the receiving collector. If an event arrives but the operational result is wrong, preserve that event as evidence before adjusting downstream configuration. This sequence helps separate a delivery problem from an interpretation problem.

Use the Event Management troubleshooting guide for the wider investigation. Once collection is established, review ServiceNow event rules when assessing how received events should be handled.

For the first acceptance test, avoid changing the action group, receiving port, and collector configuration together. A change record that identifies one adjustment and one observed result is easier to assess than several simultaneous edits. After the message appears, preserve the final working configuration and the event used to validate it. That gives the next administrator a reproducible starting point if a later network or credential change interrupts collection.

Answers to common questions about OAuth, alert state updates, and grouped alerts

Can Azure Monitor send events using OAuth instead?

Yes. The OAuth integration uses an Azure action group with a secure webhook targeting the ServiceNow instance. Its setup requires evt_mgmt_admin, web_service_admin, and oauth_admin. The relevant ServiceNow integration user needs evt_mgmt_integration. Treat this as a separate receiving design rather than adding OAuth configuration to the MID basic authentication procedure.

Which identity values matter when choosing the OAuth route?

For Azure V1 tokens, the integration user’s Source field and the Azure OAuth OIDC Entry Client ID use the registered application’s Application ID URI. For V2 tokens, those fields use the Application (client) ID. Check the application’s token version before entering either value; an application name does not substitute for these identifiers.

Does inbound collection also update alert states in Azure?

Returning ServiceNow alert state changes to the Azure portal requires the Azure Monitor Bi-directional connector, which is supported on Quebec Patch 9 or later, Rome Patch 3 or later, and San Diego. Confirm the instance release before planning that step. Include that as a separate acceptance criterion if the operational workflow needs return updates. Successful inbound collection establishes receipt of Azure messages, while the return direction needs its own configuration and validation.

Why might Azure alerts arrive as a group?

Azure provides Correlate alerts within Alert Processing Rules. When that setting is assigned, Azure Monitor alerts received on the ServiceNow instance within 60 minutes are grouped through tag based alert clustering. Check that upstream setting when evaluating grouped results rather than assuming the webhook delivered an unintended collection of messages.

What should a handover record preserve?

Record the collector components, listener address and port, transform name, action group, rule association, schema setting, and the outcome of the controlled test. Identify who maintains the Azure configuration and who maintains the MID configuration. Keep passwords out of general handover notes so future troubleshooting can use the configuration record without exposing authentication details.