Create a connection alias on your ServiceNow instance. The alias enables your ServiceNow instance to request OAuth tokens from the Microsoft Azure Application Insights and enables the authenticate its requests.

Before you begin

  • Request an Integration Hub subscription.
  • Activate the Microsoft Azure Application Insights spoke.
  • Role required: admin

Register Microsoft Azure Application Insights as an OAuth provider

Create an OAuth application on Microsoft Azure that authenticates requests for OAuth tokens from your ServiceNow instance.

Before you begin

Role required: admin

Procedure

  1. Log in to https://portal.azure.com/.
  2. Select App registrations.
  3. Select New registration.
  4. Fill the form.
    Table 1. OAuth application details
    Field Description
    Name Name of the OAuth application.
    Supported account types Option to specify who can use the OAuth application that you're creating to access Microsoft Azure Blob Storage.
    Redirect URI (optional) Option to provide the redirect URI. The redirect URI format is https://<instance-name>.service-now.com/oauth_redirect.do. From the Select a platform list, select Web.
  5. Select Register.
    The OAuth application is registered.
  6. Copy the values from the following fields under the Essentials heading:
    • Application (client) ID
    • Directory (tenant) ID
  7. In the Client credentials field, select Add a certificate or secret.
  8. Under the Client secrets heading, select New client secret.
  9. In the Add a client secret window, do the following actions.
    1. In the Description field, enter a description of the client secret.
    2. In the Expires field, enter the expiry period of the client secret.
    3. Select Add.
      The client secret is generated.
  10. Under the Value heading, copy and store the client secret at a secure place.
    Microsoft Azure Application Insights is registered as an OAuth provider and the information required to set up the connection record is available.

Create a connection alias record

Provide the details in the connection alias form. Your ServiceNow instance uses these details to request OAuth tokens from Microsoft Azure Application Insights.

Before you begin

Role required: admin.

Procedure

  1. Log in to your ServiceNow instance.
  2. Navigate to All > Process Automation > Workflow Studio.
  3. Select Integrations.
  4. Select Connections.
  5. In the Search all connections field, search the Microsoft Azure Application Insights connection alias record.
    Note: The Outbound tab is enabled by default. Or else, toggle to enable it.
  6. On the Microsoft Azure Application Insights connection alias tile, select View Details.
  7. Select Configure.
  8. Fill the form.
  9. Select Configure and Get OAuth Token.
    You're required to log in to https://portal.azure.com/ before the OAuth token is provided.

    On successful authentication, the request is authenticated and the OAuth token is available.