Set up the Microsoft Azure Resource Management spoke

Integrate the ServiceNow instance and the Microsoft Azure Resource Management by configuring the Microsoft Azure Resource Management connection record on your ServiceNow instance.

Before you begin

  • Request an Integration Hub subscription.
  • Create a custom OAuth application on the Microsoft Azure portal.
  • Activate the Microsoft Azure Resource Management spoke.
  • Role required: admin.

Register Microsoft Azure Resource Management as 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 Resource Management.
    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 Resource Management is registered as an OAuth provider and the information required to set up the connection record is available.

Create connection record

Integrate the ServiceNow instance and the Microsoft Azure Resource Management by configuring the Microsoft Azure Resource Management connection record on your ServiceNow instance.

Before you begin

Role required: admin.

Procedure

  1. Log in to your ServiceNow instance.
  2. Navigate to All > Process Automation > Workflow Studio.
  3. Select the Integrations tab.
  4. Select Connections.
  5. In the Search all connections field, search the Microsoft Azure Resource Management connection alias record.
    Note: The Outbound tab is enabled by default. Or else, toggle to enable it.
  6. On the Microsoft Azure Resource Management connection alias tile, select View Details.
  7. Select Configure.
  8. Fill the form.
    Table 2. Microsoft Azure Resource Management connection alias
    Field Description
    Connection Name Name of the connection alias record.
    Authorization URL URL that your ServiceNow instance uses to request OAuth tokens from the Microsoft Azure portal. The URL must in the following format: https://login.microsoftonline.com/{tenant ID}/oauth2/v2.0/authorize.
    Token URL URL that your ServiceNow instance uses to get the OAuth token. The URL must in the following format: https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token.
    Token Revocation URL URL that your ServiceNow instance uses to cancel the OAuth token. The URL must in the following format: https://login.microsoftonline.com/{tenant ID}/oauth2/v2.0/revoke.
    Note: This field is optional.
    Client ID Unique ID of the OAuth application that you created on the Microsoft Azure portal. The Microsoft Azure portal uses this ID to authenticate your ServiceNow instance requests.
    Client Secret The secret that Microsoft Azure portal uses to authenticate your ServiceNow instance requests. You generate the client secret when you create the OAuth application on Microsoft Azure portal.
    Redirect URL Specific address where the third-party application sends your ServiceNow instance back after the request is authenticated. You must set the redirect URL when you create the OAuth application on Microsoft Azure portal.
  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.