Configure rules using the Azure alert API

All resource state and configuration changes on Azure can be tracked using events via the Azure alert API. ServiceNow® receives the events and updates the resources accordingly. The cloud admin configures the rules to tell Azure where to send the event.

Before you begin

Role required: cloud admin.

An Azure subscription and at least one resource group must be created.

Enter one rule per subscription and check that the rule is active by verifying that the Active checkbox is selected.

Procedure

  1. Navigate to Cloud Management > Microsoft Azure Cloud > Alert Rules Configurations.
  2. Choose New.
  3. Set the Target Subscription.
  4. Enter the Resource Group.
  5. Choose a user to authenticate the request.

    The user must have the sn_azure.integration role.

  6. Choose Submit.

Result

Every resource state and configuration change to the Azure subscription is now captured and processed in ServiceNow®. Azure sends an alert to the ServiceNow instance where you have configured Azure alert.

If a new virtual machine is created in the Azure subscription directly on the Azure portal, Azure will send an alert about this change and Cloud Management will process the event and create a new entry for the virtual machine on the Azure portal. The benefit of this is that you do not have to wait for Discovery to run until the new instance entry is created in the ServiceNow database.

If you want the events to be logged in the Azure alerts events table, then navigate to Microsoft Azure Cloud > Properties and select the Yes checkbox under Log events from Azure alert. By default, it is set to No.

Note:

Azure Alert API is a preview feature and contains the following limitations:

  • There is a fifteen minute time delay in event generation.
  • Basic authentication is not supported. You need to disable authentication to be able to use the API.