Setting up Azure DevOps OAuth 2.0 credential
Create Azure DevOps OAuth 2.0 credential and use them to connect your Azure DevOps instance.
Create a tenant in Microsoft Entra
Create a tenant in Microsoft Entra and set up the required permissions to create an Azure DevOps (ADO) app.
Vorbereitungen
Role required: Tenant Creator in Azure DevOps.
Warum und wann dieser Vorgang ausgeführt wird
Your tenant represents your organization and helps you to manage a specific instance of Microsoft Cloud services for your internal and external users.
If you have an existing tenant, which has access to create an ADO app, you do not need to perform this procedure. If you don’t have a tenant, you must create a tenant in Microsoft Entra, which will have access to create an ADO app.
Prozedur
Add a user to tenant in Microsoft Entra
Add a user who contains the admin role, to the tenant created in the previous procedure.
Vorbereitungen
Role required: User Administrator in Azure DevOps
Prozedur
Create an organization in Azure portal
Create an organization in the new tenant, which has access to create an app.
Vorbereitungen
Role required: Global Administrator in Azure DevOps
Prozedur
Create an Azure DevOps app
Create and configure an Azure DevOps (ADO) app and copy the required values to enable OAuth 2.0 authentication with your ServiceNow instance.
Vorbereitungen
Role required: Global Administrator in Azure DevOps
Prozedur
Register Azure DevOps as an OAuth provider
Use the information generated during Azure DevOps (ADO) app account configuration to register Azure DevOps as an OAuth provider and enable the instance to request OAuth 2.0 tokens.
Vorbereitungen
Role required: admin
Prozedur
Configure organization and project level settings
Configure organization and project level settings for your app.
Vorbereitungen
Role required: Member of the Project Collection Administrators group or organization's owner.
Prozedur
Create credential record and get OAuth token
Create credential record and get OAuth token.
Vorbereitungen
Role required: admin, sn_devops.admin
Warum und wann dieser Vorgang ausgeführt wird
For ADO OAuth 2.0, you must create separate credential records for build, release, and feeds in ServiceNow.