FruxonDocs

Azure DevOps

Microsoft Azure DevOps integration for work items, repositories, pull requests, and pipelines

The Azure DevOps integration lets your agents work with Boards (work items and WIQL queries), Repos (repositories and pull requests), and Pipelines in an Azure DevOps organization through the Azure DevOps REST API.

Prerequisites

You need:

  • Organization — your Azure DevOps organization name, the <org> segment in https://dev.azure.com/<org>.
  • Personal Access Token (PAT) — create one at https://dev.azure.com/<org>/_usersSettings/tokens with the scopes your tools need (Work Items, Code, Build).

Setup

  1. Open Integrations from the sidebar
  2. Select Azure DevOps from the catalog
  3. Click Add Integration Config
  4. Give the config a display name (e.g., "Azure DevOps — Platform").
  5. Enter your Organization name.
  6. In the auth section, paste your PAT into the Password field. The Username can be left blank or set to anything — Azure DevOps only reads the token.
  7. Save the config

Connection testing is available — click Test on the saved config to verify the organization and token against the Azure DevOps API before deploying.

Using in Your Agent

  1. Open your agent in Agent Studio and select an Agent Step
  2. Under Attached Integration Configurations, click Attach configuration and choose your config
  3. Attach Azure DevOps tools from the tools panel
  4. Tools are referenced as azure_devops.list_projects, azure_devops.create_work_item, etc.

Most tools take a project (name or ID from List Projects). Pull request tools also need a repository_id (from List Repositories), and pipeline tools a pipeline_id (from List Pipelines).

Available Tools

Projects & Repositories

ToolDescriptionAction Type
list_projectsList projects in the organizationReadOnly
list_repositoriesList Git repositories in a projectReadOnly

Boards (Work Items)

ToolDescriptionAction Type
query_work_itemsFind work items with a WIQL queryReadOnly
get_work_itemGet a work item with all fieldsReadOnly
create_work_itemCreate a work item (Task, Bug, etc.)Reversible
update_work_itemUpdate a work item via JSON PatchReversible
add_work_item_commentAdd a comment to a work itemReversible

Repos (Pull Requests)

ToolDescriptionAction Type
list_pull_requestsList pull requests in a repositoryReadOnly
get_pull_requestGet a pull request by IDReadOnly
create_pull_requestOpen a pull requestReversible

Pipelines

ToolDescriptionAction Type
list_pipelinesList pipelines in a projectReadOnly
list_pipeline_runsList recent runs of a pipelineReadOnly
run_pipelineQueue a new pipeline runReversible

On this page