Azure DevOps

Connect an organization with a service principal or a personal access token, choose its projects, and use service hooks or polling.

An Azure DevOps connection reads one organization. It signs in as an Entra ID service principal (recommended) or with a personal access token, keeps service hooks on the projects you select, and lets each person link their own Azure DevOps account so Synaxis knows what they may read.

Before you start

  • Service principal: register an Entra application, add its service principal to the Azure DevOps organization with access to the projects Synaxis will read, and give it a client secret, a certificate, or a federated credential for workload identity (Kubernetes with Azure workload identity).
  • Personal access token: use one only where a service principal is not possible.
  • To keep service hooks, the identity needs permission to manage service hook subscriptions in the selected projects.
  • To record each commit's pipeline results, it needs Build (Read), and Test Management (Read) for test counts.

To add the connection

  1. Open Connections, select Add a connection, and go to Azure DevOps.

  2. Fill in:

    Field Enter
    Name A name for the connection
    Organization address https://dev.azure.com/<organization>
    Signs in with Service principal with a client secret, Service principal with a certificate, Workload identity or Personal access token
    Secret name for the credential (empty: one is chosen) The name the secret, certificate or token is stored under
    Credential (stored as that secret; leave empty if already stored) The client secret, certificate or token itself (not for workload identity)
    Tenant id, Client id The Entra tenant and application (not for a token)
    Poll instead of service hooks Check when Azure DevOps cannot reach your server
  3. Select Add. The console answers The connection is added and syncing.

  4. Select Scope for the connection and choose its projects (below). Nothing is in scope until you do.

Choose the projects

Repositories in projects you have not chosen are out, whatever the rules say. The same choice decides which projects' work items and wikis can be read.

  1. In the connection's Scope page, under Projects, find projects with Name contains and Apply.
  2. Check Selected for each project to read. In scope shows whether a project is chosen now.
  3. Optionally fill in Include projects matching (one per line) and Leave out projects matching (one per line), with * as a wildcard. A pattern that leaves a project out wins over a selection.
  4. Check Include new projects to have projects created later chosen as they appear. It is off by default, so a new project stays out until you choose it.
  5. Select Save. If projects leave scope, the console lists what will be removed under Confirm the project selection; select Yes, remove it to go ahead. The console answers The project selection is saved and syncing.

From the CLI:

synaxis projects list ado-main
synaxis projects select ado-main Products Platform
synaxis projects deselect ado-main Sandbox --yes
synaxis projects include-new ado-main off

Purge a project

Purge on a project's row deselects it, purges its repositories' index data and deletes its work items. The console first lists what goes under Confirm purging the project; select Yes, remove it. The answer gives the counts, as in "The project is purged: 12 repositories, 3400 work items.", and the audit log records them. From the CLI: synaxis projects purge ado-main Sandbox --yes.

Service hooks or polling

Unless the connection polls, every sync keeps one enabled service hook subscription per selected project for pushes, repository changes and completed builds, pointing to <public URL>/hooks/ado/<connection> with the connection's shared secret. It creates missing ones and replaces disabled ones. A connection that polls syncs every 5 minutes instead, and every connection is reconciled nightly, so a missed notification is caught up.

Work items and wikis

Work items, pull requests with their threads, and wikis are opt-in per project. Set the connection's workSources in the configuration file: adoProjects (the projects whose work items are read), pullRequests and wikis. Area path security decides who sees each work item.

With attachmentText: true, the text of work items' Markdown and plain-text attachments (.md, .markdown, .txt, up to 64 KB each) is read too, scanned for secrets like comments, and found by work search; whoever may read the work item may read it. Images, archives and other files are never read. Turning it on reads every work item once more; turning it off removes the attachment text from search at once.

Only chosen projects can be opted in: naming a project that is not chosen (above) is refused, by the API and in the configuration file alike. Deselecting a project, by its checkbox or by a pattern, stops reading its work items and wiki: the confirmation lists the project with "(work items and wikis)", the project leaves adoProjects, and the sync that follows deletes its work items, pull requests and wiki pages from search, as a purge does.

People link their Azure DevOps account through the connection's Entra application (for a token connection, the linkClientId application of the configuration file). Add the redirect URI <public URL>/auth/link/ado/callback to that application, and the delegated Azure DevOps permission user_impersonation.

See also