Follow this step-by-step guide to connect your Microsoft Azure DevOps Services (ADO) account to Flow.
Note: This integration is only for Azure DevOps Services (ADO Cloud). This product was formerly known as Visual Studio Team Services (VSTS). If you use Azure DevOps Server, follow the instructions for creating an Azure DevOps Server integration.
Before getting started, make sure your system is supported. Git repos are supported. TFVC repos are not supported.
If a PR has not been updated, deleted, abandoned, or created within the six months prior to the initial integration processing date, the PR will not be ingested into Flow and will not appear in reports.
Important: Use a service account to create this integration. Learn more about creating a service account.
In this article
Permission requirements
- Set up personal access token scopes. Follow the instructions as documented below.
- Make sure the service account is set up as a Project Collection Administrator at the organizational level.
- Your git host may not require webhooks. If this is the case, set the git host’s View instance-level information permission to Allow. This permission is required to establish a connection and import repos. Add the user to the reader group at the project level.
Azure DevOps Services configuration
Note: The terminology used in ADO and Flow differs slightly. Use this mapping to understand how concepts in ADO map to Flow:
- An ADO work item is called a ticket in Flow
- An ADO project or board is called a ticket project in Flow
- An ADO iteration is called a sprint in Flow
Follow these steps to set up your Azure DevOps Services configuration.
- Click Settings In Flow's top navigation.
- In the left navigation under Integrations, click Integrations.
- Click the Add Integration button in the top right corner of the Integrations page.
- On the following Integration Provider page, click Azure DevOps.
- Select whether you want to connect via OAuth or via Access token.
- Input your email address, Personal access token, and Base URL. Use the exact email format seen in your Azure user profile. The email field is case sensitive. Your URL will look like
https://dev.azure.com/{yourorganization}
.
Important: Use the https://dev.azure.com
domain in the Base URL field in Flow to connect successfully. This applies even if your base URL in Azure Devops Services uses the visualstudios.com domain. While you may be able to access your instance using either a dev.azure.com
or visualstudios.com
domain, Flow requires the format of https://dev.azure.com/{yourorganization}
to successfully connect and import your data.
Connect via OAuth
To connect to ADO via OAuth:
- Select the OAuth tab on the Select Authentication Method page.
- Click Connect to Azure DevOps.
- Follow the prompts to sign into your ADO account.
- In ADO, select the organization you want to connect to Flow.
- Copy and paste the base URL from ADO into the Base URL field. Your URL will look like
https://dev.azure.com/{yourorganization}
. - Click Test URL.
- On the following page, use toggles to select the available services you want ingested by Flow.
- Click Next.
- Name the integration.
- Click Create.
Flow will take you to the new integration’s Integration page and your integration will be listed on the Integrations page.
Creating a personal access token
To create a personal access token in Azure DevOps Services:
- Locate Personal access tokens under your user settings.
- On the Personal access token page, click New Token.
- Fill in the following information for your new personal access token:
- Name
- Organization
- Expiration date
- Scopes - Below find the minimum scopes required to connect your account.
- Code: Read
- Build: Read
- Graph: Read
- Identity: Read
- Project and Team: Read
- Work Items: Read
- Click Save.
Finalizing the connection
After creating a personal access token, complete your integration setup in Flow.
- Copy your access token and paste it into the Flow Personal Access Token field.
- Click Test connection.
- If the connection is successful, you'll see a Successfully connected message:
- If you receive an Authorization denied error when trying to connect your Azure DevOps Services account, verify that the access token is correct and try again.
- If you're notified that An error has occurred, verify the email and base URL are correct and try again.
- After connecting to your Azure DevOps Services account, click Next.
- On the next screen, choose which services to turn on for this integration. To import pull request and ticket data in addition to repo data, leave all services on. You can turn services On and Off at any time. Click Next.
Note: Azure DevOps Services Work Items are generally mapped to Tickets in Flow.
- Name the integration to identify the account you connected. Click Create.
Troubleshooting
- If your integration does not test successfully, check your credentials.
- Verify your email address is the same case and spelling as seen in your Azure Profile. The email field is case sensitive.
- Review the scopes in your access token to ensure all required scopes have been selected.
- Confirm your base URL adheres to the required format:
https://dev.azure.com/{yourorganization}
. While you may be able to access your instance using either a dev.azure.com or visualstudios.com domain, Flow requires the format ofhttps://dev.azure.com/{yourorganization}
to successfully connect and import your data. - If you receive an authorization denied error and your organization uses conditional access policies (external site, opens in new tab), ensure the service account has the correct permission to access resources in your ADO instance.
- If you’re unable to enable webhooks, check your Azure user permissions. In order to enable webhooks, you must be a Project Collection Administrator.
- If you have multiple ADO services integrations and tickets are not being associated with their epics, ensure the ticket projects of both the epic ticket and the child ticket are ingested under the same integration.