Connects workspaces to Git repositories in an Azure DevOps organization. Azure DevOps Server (on-premises) is not supported.
Go to Settings → Version control → Azure DevOps and provide:
dev.azure.com/my-orgGrant the token these scopes:
Code (Read & write)Pull Request Threads (Read & write)Code (Status)Service Connections / Subscriptions (Read, query & manage)The last one is what lets us register the service hooks that trigger compliance runs. Without it a connection works for browsing but pull requests will not be checked.
The token is stored encrypted, and is validated against the organization before the connection is saved.
Leave Project blank to browse every project the token can reach in the organization.
Set it to pin the connection to a single project. Pinning is required to create new repositories from Infracodebase, because Azure DevOps creates a repository inside a specific project rather than at the organization level.
To connect several projects without pinning, use one unpinned connection. To create repositories in several projects, add one pinned connection per project.
The connection shows as no longer valid. Remove it and connect again with a new token.
Personal access tokens expire, and Azure DevOps caps how long they can live, so a connection needs its token replaced periodically. A token also stops working if the person who created it loses access to the organization, which is worth considering when deciding whose account creates it.