Table of Contents
Integration Guide - Azure DevOps Repos
Connect Azure Repos Using a Personal Access Token (PAT). Connect Azure Repos to LinearB using a Personal Access Token so LinearB can read your repositories and activity for delivery metrics and autom…
Connect Azure Repos Using a Personal Access Token (PAT)
Connect Azure Repos to LinearB using a Personal Access Token so LinearB can read your repositories and activity for delivery metrics and automation.
Overview
Azure Repos is supported as a Git provider in LinearB. The connection uses an Azure DevOps Personal Access Token (PAT) with read-level scopes so LinearB can access your organization, projects, teams, code, builds, and graph data required to calculate metrics.
Before You Begin
Prerequisites
- LinearB user with Admin permissions.
- Azure DevOps account with sufficient rights to:
- Create Personal Access Tokens.
- Access the organization and projects you want LinearB to connect to.
Roles & Permissions
- Organization Owner or Project Collection Administrator permissions are required in Azure DevOps to ensure you can see all required projects and repos.
Security & Access
LinearB uses read-level access to analyze Git history and metadata. It does not modify your code or branches.
Firewall Requirements
If your organization uses firewall rules, IP allowlists, or geolocation-based conditional access policies, ensure that communication with LinearB is allowed.
LinearB uses the following NAT Gateway IP addresses for Azure DevOps and Azure Repos connections:
-
Inbound:
18.118.232.229,52.15.80.85 -
Outbound:
35.226.140.92
If your organization restricts access based on IP address or geographic location, ensure these addresses are allowlisted before attempting to connect or reauthorize Azure DevOps.
Expected Time to Complete
- Approximately 5–10 minutes to create the PAT and connect Azure Repos to LinearB.
1. Generate a Personal Access Token in Azure DevOps
First, create a PAT in Azure DevOps that LinearB will use to access your Azure Repos.
Step-by-step: Create the PAT
- Navigate to Azure DevOps and sign in.
- Click your User Settings (top-right corner) and select Personal Access Tokens.
- Click + New Token.
- Provide a descriptive name for the token (for example, LinearB Azure Repos).
- Set an appropriate expiration date for the token, based on your security policies.
- Assign the following permissions:
- User Profile: Read (
vso.profile) - Project and Team: Read (
vso.project) - Code: Read (
vso.code) - Build: Read (
vso.build) - Graph: Read (
vso.graph)
- User Profile: Read (
- Click Create and copy the token securely (it will not be viewable again).
For more details on PAT creation and scope meanings, see Microsoft’s Azure DevOps PAT documentation.
2. Connect Azure Repos to LinearB
After you generate the PAT, use it to connect Azure Repos inside LinearB.
Step-by-step: Connect in LinearB
- In LinearB, navigate to Settings → Company Settings, and select the Git tab.
- Click Add Integration.
- Select Azure DevOps as your source control provider.
- Enter the name of your Azure DevOps organization.
- Paste your Personal Access Token (PAT) into the required field.
- Click Connect. LinearB will begin processing your Azure Repos data.
Verify
How to Confirm the Integration is Working
- In LinearB, go to Settings → Company Settings → Git.
- Confirm that an Azure DevOps integration appears with a connected status.
- Click the integration entry to view available repositories and verify that your expected projects and repos are listed.
- After initial processing, branches, commits, and pull requests from Azure Repos should begin to appear in your LinearB delivery and metrics views.
Troubleshooting
Azure DevOps connection fails
Possible cause
The Personal Access Token (PAT) is missing one or more required scopes, or the Azure DevOps organization name is incorrect.
Resolution
Verify that the organization name is correct and that the PAT includes all required read permissions. Then retry the connection.
Some projects or repositories are not visible
Possible cause
The Azure DevOps account used to create the PAT does not have access to all projects or repositories.
Resolution
Ensure the account has Organization Owner or Project Collection Administrator permissions and that the PAT was created from the correct Azure DevOps organization.
Integration previously worked but now shows errors
Possible cause
The Personal Access Token has expired or was revoked.
Resolution
Generate a new PAT with the required permissions and reconnect the integration.
Connection or reauthorization is blocked by network policies
Possible cause
Your organization uses firewall rules, IP allowlists, or geolocation-based conditional access policies that block communication with LinearB.
Resolution
Ensure the IP addresses listed in Firewall Requirements are allowlisted in your network and security policies.
If you continue to experience issues, please contact support.
Next Steps
- Git integrations overview
- Metrics overview
- gitStream & automation setup
- Enterprise (Plan) Setup Guide
- Essentials (Plan) Setup Guide
You have successfully connected Azure Repos to LinearB using a Personal Access Token.
How did we do?
Git Integrations Overview
Integration Guide - Bitbucket (Cloud + Server)