Skip to content

Factories > Code forges

Connect Azure DevOps to your factory

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

Connect Azure DevOps Services to a factory with dedicated identities, repository access, and event-driven automations.

Connect Azure DevOps Services to a factory so agents can work in selected repositories, open pull requests, and start runs from work item and pull request events. Warp creates a dedicated identity for each factory’s Git and pull request operations.

The first-class integration supports hosted Azure DevOps Services at dev.azure.com. It doesn’t support Azure DevOps Server. To use a self-hosted Azure DevOps Server repository, configure it as another code forge. For standalone cloud agent environments, use the Azure DevOps access token setup.

  • Repository access - Give factories access to selected Azure DevOps repositories from the factory UI.
  • Factory identity - Give each factory its own native Microsoft Entra identity and service principal for Azure DevOps operations and Git attribution.
  • Trigger - Start factory runs from Azure DevOps events such as pull requests, work item updates, and mentions of the factory identity.

Your personal Azure DevOps OAuth connection limits what appears during setup. The Azure DevOps Manager creates and manages a dedicated service account identity for each factory.

IdentityPurposeAccess
Your connected Azure DevOps accountLists resources during setup and supplies your identity for creator-based runs.Limited to resources your Azure DevOps user can read.
Azure DevOps ManagerCreates and maintains factory identities in one Microsoft Entra tenant and Azure DevOps organization.Owns only the Entra applications it creates. In Azure DevOps, it has Basic access and belongs to Project Collection Administrators.
Factory identityAuthenticates the factory’s Git and pull request operations after a run starts.Has Basic access, project visibility, Service Hooks access, work item access, and permissions on the selected repositories.

Each factory identity consists of a separate Microsoft Entra application and service principal that Warp adds to Azure DevOps.

  • A Warp team with Warp Factories access - A factory belongs to a Warp team.
  • An Azure DevOps Services organization - Use an organization hosted at dev.azure.com, with the project and repositories the factory needs.
  • A connected Azure DevOps user - Connect a user who can read the organization, project, and repositories you want to select.
  • An active connection for each automation creator - The user who creates an Azure DevOps automation must keep their own Azure DevOps OAuth connection active with the required scopes.
  • Microsoft Entra and Azure DevOps administrators - Administrators with the roles listed below approve and add the Manager.

The Microsoft Entra and Azure DevOps approvals can be completed by different people. A setup link lets each administrator complete their step without a Warp account.

SystemAdministratorWhat the administrator approves
Microsoft EntraGlobal Administrator or Privileged Role AdministratorThe Manager’s Microsoft Graph Application.ReadWrite.OwnedBy permission, limited to applications the Manager owns.
Azure DevOpsProject Collection AdministratorBasic access and Project Collection Administrators membership. Warp doesn’t retain the administrator’s sign-in.

Reuse tenant approval for another Azure DevOps organization in the same Microsoft Entra tenant. Each organization requires Azure DevOps approval.

Start from factory setup to connect your account, select repositories, and provision the runtime identity.

  1. Sign in to the Warp Factories web app. Next to the factory list, click + to create a factory.
  2. In the code host step, find the Azure DevOps row and click Connect. Complete the Microsoft sign-in to connect your Azure DevOps user.
  3. Choose an Azure DevOps organization and project, then select the repositories the factory will use. Only resources your connected user can read appear.
  4. If the organization already has an active Azure DevOps Manager, continue setup. Otherwise, connect the Manager yourself or send the setup link to the required administrators.
  5. Complete the Manager approval in this order:
    1. A Global Administrator or Privileged Role Administrator completes the Microsoft Entra approval.
    2. A Project Collection Administrator completes the Azure DevOps approval.
  6. Continue factory setup. Warp creates the factory identity, adds Azure DevOps Basic access, and grants access to the selected repositories. Microsoft and Azure DevOps can take several minutes to apply these changes.

When setup confirms that the identity is ready, the factory uses that identity for Git and pull request operations. You can retry identity provisioning from the factory’s settings if setup is interrupted.

An Azure DevOps automation starts a factory run when a supported event matches its filters. Before starting a run, Warp checks the automation creator’s Azure DevOps connection. New Azure DevOps factories include a default automation for pull request mentions, work item mentions, and work item assignments.

To add or change a trigger:

  1. In the factory dashboard, open Automations, then create an automation or edit an existing one.
  2. Add an Azure DevOps trigger, then choose an event and its filters.
  3. Click Save. Perform a matching action in Azure DevOps and confirm that a run starts in the factory dashboard.

For general filter behavior, see factory automations.

Azure DevOps eventAvailable filters
Work item createdWork item types, labels, assignees, and authors
Work item assignedWork item types, labels, assignees, and authors
Work item labeledWork item types, labels, assignees, and authors
Mentioned in a work itemMentioned users
Pull request createdRepository and target branches
Pull request mergedRepository and target branches
Pull request closedRepository and target branches
Pull request updatedRepository and target branches
Pull request commentedRepository and target branches
Mentioned in a pull requestRepository and mentioned users

Azure DevOps push events aren’t currently available as automation triggers.

  • An organization, project, or repository doesn’t appear - Confirm that your connected Azure DevOps user can read it, then refresh the connection.
  • Manager approval can’t continue - Complete the Microsoft Entra step before the Azure DevOps step. If another administrator completed the first step, reopen the setup link.
  • Identity provisioning remains in progress - Microsoft Entra and Azure DevOps permission changes can take several minutes to propagate. Retry from the factory’s settings if the setup reports an error.
  • An event doesn’t start a run - Confirm the automation is enabled and that every configured filter matches the Azure DevOps event. The user who created the automation must have an active Azure DevOps OAuth connection with the required scopes. Reconnect that user’s account if the connection is missing, revoked, under-scoped, or belongs to another user.

Factory identity doesn’t appear in comment mention autocomplete

Section titled “Factory identity doesn’t appear in comment mention autocomplete”

Cause: The Azure DevOps identity picker for work item comments filters service-principal identities from its normal search results. This is an Azure DevOps platform limitation that Warp can’t change. Warp can detect the factory identity after Azure DevOps saves the comment with the identity’s mention metadata.

Workaround: Add the factory identity to Azure DevOps’s recently used identity cache:

  1. In the Azure DevOps organization and project connected to the factory, assign the factory identity to a work item and save the work item.
  2. Return to the comment and enter @ followed by the factory identity’s name. The identity may now appear in autocomplete. If you enter the name without autocomplete, confirm that Azure DevOps formats it as a mention instead of plain text.

The identity value 'X' for field 'Assigned To' is an unknown identity.

Section titled “The identity value 'X' for field 'Assigned To' is an unknown identity.”

Cause: Azure DevOps can’t resolve the factory identity for the current work item. This can happen when the work item is outside the organization or project configured for the factory.

Solution:

  1. In the factory’s settings, confirm its Azure DevOps organization and project.
  2. In Azure DevOps, open the work item from that organization and project, then assign the factory identity again.