> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/developer-tools/azure-dev-ops.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Azure DevOps

Azure DevOps is a software development platform. Manage repositories, pull requests, work items, comments and service hook subscriptions.

![Azure DevOps logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-f54008002f231fec2243b814df6b3fd8488330bd%2Fonedrive.png?alt=media)

|                    |                                                                                  |
| ------------------ | -------------------------------------------------------------------------------- |
| **Category**       | [Developer tools](https://docs.fastn.ai/connectors/catalog/developer-tools.md)   |
| **Website**        | [dev.azure.com](https://dev.azure.com)                                           |
| **Authentication** | OAuth 2.0                                                                        |
| **Slug**           | `azureDevOps`                                                                    |
| **On fastn.ai**    | [Embed Azure DevOps in your product](https://fastn.ai/integrations/azure-devops) |

## Setup

Your customers sign in to Azure DevOps through Fastn's own OAuth app, so nothing needs setting up first. To show your own app on the consent screen instead, add your OAuth app on the connector's **Auth** tab under **Manage providers**.

## Connect in Fastn

Your customers connect Azure DevOps from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Azure DevOps**.
2. Select **Connect** on the Azure DevOps card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Keep the **Default** auth provider, or choose your own OAuth app if you added one. Pick the **Scopes** you need, select **Authorize**, then sign in to Azure DevOps and approve access in the window that opens.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0e2bbdd7109cec207402cf6883484b8525b7fbf5%2Fconnect-oauth.png?alt=media" alt="The Connect Salesforce dialog for OAuth 2.0 with the Default auth provider, an optional account name, the Scopes selector and an Authorize button"><figcaption><p>A connect form for OAuth 2.0. Salesforce is shown here.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Azure DevOps's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Work Item Comment</td><td><code>addWorkItemComment</code></td><td>Adds a comment to the discussion of a work item.</td></tr><tr><td>Create Pull Request</td><td><code>createPullRequest</code></td><td>Creates a pull request from a source branch into a target branch of a Git repository.</td></tr><tr><td>Create Pull Request Thread</td><td><code>createPullRequestThread</code></td><td>Creates a new comment thread on a pull request with an initial comment.</td></tr><tr><td>Create Repository</td><td><code>createRepository</code></td><td>Creates a new, empty Git repository in a team project.</td></tr><tr><td>Create Service Hook Subscription</td><td><code>createServiceHookSubscription</code></td><td>Creates a web hook service hook subscription that posts an Azure DevOps event, such as git.push, to the given URL for a project.</td></tr><tr><td>Create Work Item</td><td><code>createWorkItem</code></td><td>Creates a work item of the given type with a title and description. Additional fields can be set afterwards with Update Work Item.</td></tr><tr><td>Delete Repository</td><td><code>deleteRepository</code></td><td>Deletes a Git repository, moving it to the project recycle bin. This removes the repository from the project and cannot be undone once purged.</td></tr><tr><td>Delete Service Hook Subscription</td><td><code>deleteServiceHookSubscription</code></td><td>Deletes a service hook subscription by its id, stopping further event deliveries.</td></tr><tr><td>Delete Work Item</td><td><code>deleteWorkItem</code></td><td>Deletes a work item, sending it to the project recycle bin. Set Destroy to true to remove it permanently, which cannot be undone.</td></tr><tr><td>Get Blob</td><td><code>getBlob</code></td><td>Retrieves the metadata of a Git blob (file object) by its SHA-1 object id.</td></tr></tbody></table>

<details>

<summary>View 74 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get Build</td><td><code>getBuild</code></td><td>Retrieves a single build by its numeric build id.</td></tr><tr><td>Get Build Definition</td><td><code>getBuildDefinition</code></td><td>Retrieves a single build definition by its numeric definition id.</td></tr><tr><td>Get Build Timeline</td><td><code>getBuildTimeline</code></td><td>Retrieves the timeline of a build, listing every stage, job and task with its state and result.</td></tr><tr><td>Get Commit</td><td><code>getCommit</code></td><td>Retrieves a single Git commit by its SHA-1 commit id, including author, committer and comment.</td></tr><tr><td>Get Commit Changes</td><td><code>getCommitChanges</code></td><td>Retrieves the file changes introduced by a specific Git commit.</td></tr><tr><td>Get Item</td><td><code>getItem</code></td><td>Retrieves metadata for a file or folder in a Git repository, and optionally its content, at a given path and version.</td></tr><tr><td>Get My Profile</td><td><code>getMyProfile</code></td><td>Retrieves the Azure DevOps profile of the currently authenticated user, including the public alias (id) required to look up the organizations that user belongs to.</td></tr><tr><td>Get Operation</td><td><code>getOperation</code></td><td>Retrieves the status of a long-running asynchronous operation, such as the project creation returned by Create Project.</td></tr><tr><td>Get Pipeline</td><td><code>getPipeline</code></td><td>Retrieves a single pipeline definition by its numeric pipeline id.</td></tr><tr><td>Get Pipeline Run</td><td><code>getPipelineRun</code></td><td>Retrieves a single pipeline run by its run id, including its state, result and resources.</td></tr><tr><td>Get Project</td><td><code>getProject</code></td><td>Retrieves a single team project in an Azure DevOps organization by its id or name, optionally including its capabilities and default team.</td></tr><tr><td>Get Project Properties</td><td><code>getProjectProperties</code></td><td>Retrieves the properties of a team project, such as its process template id and source control type.</td></tr><tr><td>Get Pull Request</td><td><code>getPullRequest</code></td><td>Retrieves a single pull request by its id, including source and target branches, reviewers and merge status.</td></tr><tr><td>Get Push</td><td><code>getPush</code></td><td>Retrieves a single push to a Git repository by its push id, including the ref updates it made.</td></tr><tr><td>Get Repository</td><td><code>getRepository</code></td><td>Retrieves a single Git repository by its id or name within a team project.</td></tr><tr><td>Get Team</td><td><code>getTeam</code></td><td>Retrieves a single team in a team project by its id or name.</td></tr><tr><td>Get Tree</td><td><code>getTree</code></td><td>Retrieves a Git tree object by its SHA-1 object id, listing the entries it contains.</td></tr><tr><td>Get Work Item</td><td><code>getWorkItem</code></td><td>Retrieves a single work item by its numeric id, including its fields, relations and links.</td></tr><tr><td>Get Work Item Type</td><td><code>getWorkItemType</code></td><td>Retrieves the definition of a single work item type in a project, including its fields and states.</td></tr><tr><td>List Agent Pools</td><td><code>listAgentPools</code></td><td>Lists the build and release agent pools configured in the organization.</td></tr><tr><td>List All Repositories</td><td><code>listAllRepositories</code></td><td>Lists every Git repository across all projects in an Azure DevOps organization.</td></tr><tr><td>List All Teams</td><td><code>listAllTeams</code></td><td>Lists every team across all projects in an Azure DevOps organization.</td></tr><tr><td>List Build Artifacts</td><td><code>listBuildArtifacts</code></td><td>Lists the artifacts produced by a build.</td></tr><tr><td>List Build Changes</td><td><code>listBuildChanges</code></td><td>Lists the source changes associated with a build.</td></tr><tr><td>List Build Definitions</td><td><code>listBuildDefinitions</code></td><td>Lists the build definitions in a team project.</td></tr><tr><td>List Build Logs</td><td><code>listBuildLogs</code></td><td>Lists the log files produced by a build.</td></tr><tr><td>List Builds</td><td><code>listBuilds</code></td><td>Lists the builds in a team project, optionally filtered by definition, status, result or branch.</td></tr><tr><td>List Classification Nodes - Areas</td><td><code>listAreaPaths</code></td><td>Lists the area path classification nodes of a team project, used to categorise work items by product area.</td></tr><tr><td>List Classification Nodes - Iterations</td><td><code>listIterationPaths</code></td><td>Lists the iteration path classification nodes of a team project, used to assign work items to sprints.</td></tr><tr><td>List Commits</td><td><code>listCommits</code></td><td>Lists the commits in a Git repository, optionally filtered by branch, author or item path.</td></tr><tr><td>List Graph Groups</td><td><code>listGraphGroups</code></td><td>Lists the groups in an Azure DevOps organization's identity graph.</td></tr><tr><td>List Graph Users</td><td><code>listGraphUsers</code></td><td>Lists the users in an Azure DevOps organization's identity graph.</td></tr><tr><td>List Items</td><td><code>listItems</code></td><td>Lists the files and folders under a path in a Git repository, recursing to the requested level.</td></tr><tr><td>List Organizations</td><td><code>listOrganizations</code></td><td>Lists the Azure DevOps organizations (accounts) that a given user is a member of. Pass the member's profile id, obtainable from Get My Profile.</td></tr><tr><td>List Pipeline Runs</td><td><code>listPipelineRuns</code></td><td>Lists the runs of a pipeline, newest first.</td></tr><tr><td>List Pipelines</td><td><code>listPipelines</code></td><td>Lists the pipelines defined in a team project.</td></tr><tr><td>List Policy Configurations</td><td><code>listPolicyConfigurations</code></td><td>Lists the branch policy configurations defined in a team project.</td></tr><tr><td>List Policy Types</td><td><code>listPolicyTypes</code></td><td>Lists the branch policy types available in a team project, such as minimum reviewers and build validation.</td></tr><tr><td>List Processes</td><td><code>listProcesses</code></td><td>Lists the work item process templates available in the organization, such as Agile, Scrum, Basic and CMMI.</td></tr><tr><td>List Projects</td><td><code>listProjects</code></td><td>Lists all team projects in an Azure DevOps organization that the authenticated user has access to.</td></tr><tr><td>List Pull Request Commits</td><td><code>listPullRequestCommits</code></td><td>Lists the commits included in a pull request.</td></tr><tr><td>List Pull Request Iterations</td><td><code>listPullRequestIterations</code></td><td>Lists the iterations (pushes of new commits) of a pull request.</td></tr><tr><td>List Pull Request Reviewers</td><td><code>listPullRequestReviewers</code></td><td>Lists the reviewers assigned to a pull request together with their vote.</td></tr><tr><td>List Pull Request Threads</td><td><code>listPullRequestThreads</code></td><td>Lists the comment threads on a pull request, including each thread's comments and status.</td></tr><tr><td>List Pull Request Work Items</td><td><code>listPullRequestWorkItems</code></td><td>Lists references to the work items linked to a pull request.</td></tr><tr><td>List Pull Requests</td><td><code>listPullRequests</code></td><td>Lists the pull requests of a Git repository, optionally filtered by status, creator, reviewer or target branch.</td></tr><tr><td>List Pull Requests By Project</td><td><code>listPullRequestsByProject</code></td><td>Lists pull requests across every Git repository in a team project.</td></tr><tr><td>List Pushes</td><td><code>listPushes</code></td><td>Lists the pushes made to a Git repository, newest first.</td></tr><tr><td>List Queries</td><td><code>listQueries</code></td><td>Lists the saved work item queries and query folders in a team project.</td></tr><tr><td>List Refs</td><td><code>listRefs</code></td><td>Lists the refs (branches and tags) of a Git repository. Use the filter input to narrow to a namespace such as 'heads/' for branches or 'tags/' for tags.</td></tr><tr><td>List Repositories</td><td><code>listRepositories</code></td><td>Lists the Git repositories in a team project.</td></tr><tr><td>List Service Endpoints</td><td><code>listServiceEndpoints</code></td><td>Lists the service connections (service endpoints) defined in a team project.</td></tr><tr><td>List Service Hook Consumers</td><td><code>listServiceHookConsumers</code></td><td>Lists the service hook consumers available in the organization, such as Web Hooks, Slack and Azure Storage.</td></tr><tr><td>List Service Hook Publishers</td><td><code>listServiceHookPublishers</code></td><td>Lists the service hook publishers and the event types each one can raise.</td></tr><tr><td>List Service Hook Subscriptions</td><td><code>listServiceHookSubscriptions</code></td><td>Lists the service hook subscriptions configured in an Azure DevOps organization.</td></tr><tr><td>List Team Members</td><td><code>listTeamMembers</code></td><td>Lists the members of a team, including whether each member is a team administrator.</td></tr><tr><td>List Teams In Project</td><td><code>listTeams</code></td><td>Lists all teams defined within a team project.</td></tr><tr><td>List Variable Groups</td><td><code>listVariableGroups</code></td><td>Lists the pipeline variable groups defined in a team project.</td></tr><tr><td>List Wikis</td><td><code>listWikis</code></td><td>Lists the wikis defined in a team project.</td></tr><tr><td>List Work Item Comments</td><td><code>listWorkItemComments</code></td><td>Lists the comments recorded on a work item.</td></tr><tr><td>List Work Item Fields</td><td><code>listWorkItemFields</code></td><td>Lists all work item fields defined in the organization, with their reference names and data types.</td></tr><tr><td>List Work Item Relation Types</td><td><code>listWorkItemRelationTypes</code></td><td>Lists the work item link (relation) types available in the organization, such as Parent, Child and Related.</td></tr><tr><td>List Work Item Revisions</td><td><code>listWorkItemRevisions</code></td><td>Lists every historical revision of a work item.</td></tr><tr><td>List Work Item Tags</td><td><code>listWorkItemTags</code></td><td>Lists the work item tags defined in a team project.</td></tr><tr><td>List Work Item Types</td><td><code>listWorkItemTypes</code></td><td>Lists the work item types available in a team project, such as Bug, Task, User Story and Epic.</td></tr><tr><td>List Work Item Updates</td><td><code>listWorkItemUpdates</code></td><td>Lists the field-level updates applied to a work item over its lifetime.</td></tr><tr><td>List Work Items</td><td><code>listWorkItems</code></td><td>Retrieves a batch of work items by their ids. Pass a comma-separated list of up to 200 work item ids.</td></tr><tr><td>Query Work Items By WIQL</td><td><code>queryWorkItemsByWiql</code></td><td>Runs a Work Item Query Language (WIQL) query and returns the matching work item references. Use List Work Items to fetch the full work items for the returned ids.</td></tr><tr><td>Queue Build</td><td><code>queueBuild</code></td><td>Queues a new build for a build definition on the specified source branch.</td></tr><tr><td>Run Pipeline</td><td><code>runPipeline</code></td><td>Queues a new run of a pipeline on the specified branch and returns the created run.</td></tr><tr><td>Update Pull Request</td><td><code>updatePullRequest</code></td><td>Updates a pull request, for example to change its title or description, or to complete or abandon it by setting the status.</td></tr><tr><td>Update Refs</td><td><code>updateRefs</code></td><td>Creates, updates or deletes a Git ref such as a branch. To create a branch set Old Object ID to forty zeros; to delete one set New Object ID to forty zeros.</td></tr><tr><td>Update Repository</td><td><code>updateRepository</code></td><td>Renames a Git repository or changes its default branch.</td></tr><tr><td>Update Work Item</td><td><code>updateWorkItem</code></td><td>Replaces the value of a single field on a work item, identified by its field reference name such as System.Title or System.State.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/developer-tools/azure-dev-ops.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
