Set up Microsoft Azure Virtual Network spoke

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 2 min. de leitura
  • Integrate the ServiceNow instance and Azure Virtual Network using OAuth credentials to authenticate ServiceNow requests.

    Antes de Iniciar

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

    Configure app registration for Microsoft Azure Virtual Network spoke

    Configure app registration from your Azure account to add redirect URIs, credentials, and permissions to access web APIs for your application.

    Antes de Iniciar

    • Azure account with admin privileges.
    • Role required: admin.

    Por Que e Quando Desempenhar Esta Tarefa

    For more information, see Quickstart: Configure a client application to access web APIs.

    Procedimento

    1. Sign into Azure portal.
    2. Register your app with the following platform settings.
      Tabela 1. Registration Settings
      Setting Value
      Name Enter Web app/API.
      Supported account types Specify the account types who can use the application.
      Redirect URI Specify the URI in this format: https://<instance>.service-now.com/oauth_redirect.doReplace <instance> with the name of your ServiceNow instance.
    3. Record the client ID and client secret of the app which are used for authentication.

    Register Azure Virtual Network as OAuth provider

    Use the authentication information from Azure account configuration to register Azure Virtual Network as an OAuth provider and allow the instance to request OAuth 2.0 tokens.

    Antes de Iniciar

    Role required: admin

    Procedimento

    1. Navigate to All > System OAuth > Application Registry.
    2. Open the Azure Resource Management application registry record.
    3. On the form, fill the fields:
      Field Description
      Client ID Client ID created during Azure virtual account registration.
      Client Secret Key value crated during Azure virtual account registration.
      Authorization URL The URL used for Authorization. The format of the URL is https://login.microsoftonline.com/<Directory ID>/oauth2/v2.0/authorize. Replace <Directory ID> with the directory ID in your Azure configuration.
      Token URL The URL used for OAuth tokens. The format of the URL is https://login.microsoftonline.com/<Directory ID>/oauth2/v2.0/token. Replace <Directory ID> with the directory ID in your Azure configuration properties.
      Redirect URL The URL of the instance used for redirection. The format of the URL is https://<instance>.service-now.com/oauth_redirect.do. Replace <instance> with the name of your ServiceNow instance.
    4. Right-click the form header, and click Save.

    Create Credential records for the Microsoft Azure Virtual Network spoke

    Create Credential records to the Azure Managed Storage app registration you created. The Microsoft Azure Virtual Network spoke connection and credential aliases uses these credentials to authorise actions.

    Antes de Iniciar

    Role required: admin

    Procedimento

    1. Navigate to All > Connections & Credentials > Credentials.
    2. Click New.
      The system displays the message What type of Credentials would you like to create?
    3. Select OAuth 2.0 Credentials.
    4. On the form, fill these fields.
      Field Description
      Name Unique name of the credentials record. For example, enter Azure Virtual Network.
      OAuth Entity Profile The OAuth profile you created when you registered the customAzure Virtual Network application as an OAuth provider. Enter Azure Resource Management default_profile
      Credential alias The credential alias you created when you registered the custom Azure Virtual Network application. Click the lock icon and enter, sn_azure_ms_spoke.Azure_Managed_Storage, sn_azure_rm_spoke.Azure_Resource_Mangement, sn_azure_vm_spoke.Azure_Virtual_Machine, sn_azure_vn_spoke.Azure_Virtual_Network
    5. Click Submit.

    Regenerate OAuth token for Microsoft Azure Virtual Network spoke

    Regenerate an OAuth token when it expires.

    Antes de Iniciar

    Role required: admin

    Procedimento

    1. Navigate to All > Connections & Credentials > Credentials.
    2. Select the Azure Virtual Network OAuth Credential record.
      For example, select Azure Virtual Network credentials.
    3. From Related Links section, click Get OAuth Token.
    4. Right-click the form header, and click Save.