Azure DevOps v2
Manage Azure DevOps repositories, pipelines and work items
Manages Git repositories, branches, files and pull requests, pipelines, work items, wiki pages and service connection access in an Azure DevOps organization, and calls any Azure DevOps endpoint.
azure-devops-v2_3.1.0.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Connector for Azure DevOps (version 3.1.0, named azure-devops-v2, installs next to the stock connector). Every parameter that names an existing object (project, repository, branch, pipeline, pipeline run, pull request, work item, work item type, service connection, wiki, user, reviewers) is a dropdown, so users pick it instead of typing an ID; typed values and Jinja still work. It works with repositories, branches, commits, files and pull requests (create, update, review comments, reviewers, merge commits), pipelines and runs, work items (create, read, update, query, comments), wiki pages, service connections (revoke pipeline access without deleting the connection), the organization audit log and user access levels. The execute API request operation calls any Azure DevOps endpoint of the organization with the connector's own credentials.
Authentication is a Microsoft Entra ID service principal (client credentials, recommended). The service principal is added to the organization with Basic access and to the project with the permissions the operations need. A personal access token is supported as a customer option.
Live-tested
Live-tested on FortiSOAR 8.0.1 against an Azure DevOps organization (3.1.0): 51 operations succeed, including the 11 dropdown option operations, and 6 expected refusals (404 on missing objects, and the 403 of the audit log) are checked live. The playbook branches run live, and the PR review gate runs with Jinja expressions in its dropdown parameters.
Not live-tested
- List Audit Log and Update User Access: the lab identity has no organization-level permission (View audit log, Users), so the success paths are synthetic; the 403 is live. Add Pull Request Reviewer and Update User Access need an owner user configured and are not in the 3.1.0 run.
- Disabling a repository: Azure DevOps refuses it through the API for this repository type. Enabling is live.
- The approved branch of the PR review playbook: a human reviewer must cast the approving vote.
- The 429 status is synthetic: throttling cannot be provoked on demand.
Configuration · 11 fields
- Server URL
server_urltext requiredAzure DevOps base URL. Use https://dev.azure.com for Azure DevOps Services.
Default
https://dev.azure.com - Organization Name
organizationtext requiredName of the Azure DevOps organization (the dev.azure.com/<organization> segment).
- Default Project
projecttextProject used when an operation leaves Project empty.
- Authentication Type
auth_typeselect requiredEntra ID service principal (client credentials) is recommended. A personal access token is supported for customers that use one.
Options Entra ID Service PrincipalPersonal Access Token - Directory (Tenant) ID
tenant_idtextEntra ID tenant of the app registration (service principal auth).
- Application (Client) ID
client_idtextClient ID of the app registration (service principal auth). The app must be a user in the organization.
- Client Secret
client_secretpasswordClient secret value (not the secret ID) of the app registration.
- Personal Access Token
api_keypasswordPersonal access token, used only when the authentication type is Personal Access Token.
- Principal Name
principalNametextOptional. When set, the health check requires this user or principal to be a member of the organization.
- API Version
api_versiontextAzure DevOps REST API version.
Default
7.1 - Verify SSL
verify_sslcheckboxVerify the TLS certificate of the Azure DevOps host.
Default
true
Operations · 53
Add Pull Request Reviewer 5 params
add_pull_request_revieweradd_pull_request_reviewerAdds a reviewer to a pull request.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Pull Request Id
pull_request_idselect requiredPull request ID.
- Reviewer
reviewerselect requiredReviewer (user principal name or identity ID).
- Is Required
is_requiredcheckboxRequired reviewer.
Default
false
Add Work Item Comment 3 params
add_work_item_commentadd_work_item_commentAdds a comment to a work item.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Work Item Id
work_item_idselect requiredWork item ID.
- Text
texttext requiredComment text.
Create Branch 4 params
create_branchcreate_branchCreates a branch from an existing branch.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Branch
branchtext requiredNew branch name.
- Source Branch
source_branchselectExisting branch to start from.
Default
main
Create Merge Commit 4 params
create_merge_requestcreate_merge_requestCreates a merge commit of two or more parent commits.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Parents
parentstext requiredComma-separated parent commit IDs (two or more).
- Comment
commenttextMerge commit message.
Create File In Repository 6 params
create_new_file_in_repositorycreate_new_file_in_repositoryCommits a new file to a branch.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Branch
branchselect requiredBranch name, for example main or feature/example. The refs/heads/ prefix is optional.
- Commit Message
commit_messagetext requiredCommit message.
- File Path
file_pathtext requiredPath of the new file, for example /docs/new.md.
- Content
contenttextFile content (text).
Create Or Update Wiki Page 4 params
create_or_update_wiki_pagecreate_or_update_wiki_pageCreates or replaces a wiki page.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Wiki Id
wiki_idselect requiredWiki.
- Path
pathtext requiredPage path, for example /Runbooks/Triage.
- Content
contenttext requiredPage content (Markdown).
Create Pull Request 8 params
create_pull_requestcreate_pull_requestOpens a pull request, optionally with reviewers.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Source Branch
source_branchselect requiredSource branch.
- Target Branch
target_branchselectTarget branch.
Default
main - Title
titletext requiredPull request title.
- Description
descriptiontextPull request description.
- Reviewers
reviewersmultiselectReviewers (multiselect); a comma-separated text list is also accepted.
- Is Draft
is_draftcheckboxCreate as a draft.
Default
false
Create Pull Request Comment 6 params
create_pull_request_commentcreate_pull_request_commentStarts a comment thread on a pull request, or replies in a thread.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Pull Request Id
pull_request_idselect requiredPull request ID.
- Content
contenttext requiredComment text.
- Thread Id
thread_idintegerExisting thread to reply to. Leave empty to start a thread.
- Parent Comment Id
parent_comment_idintegerComment to reply to within the thread.
Create Repository 2 params
create_repositorycreate_repositoryCreates an empty Git repository in a project.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Name
nametext requiredRepository name.
Create Work Item 5 params
create_work_itemcreate_work_itemCreates a work item (Issue, Task or Epic as the process allows), for example from a FortiSOAR incident.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Work Item Type
work_item_typeselect requiredWork item type, for example Issue, Task or Epic (as the process allows).
- Title
titletext requiredTitle.
- Description
descriptiontextDescription (HTML or text).
- Fields
fieldstextareaOther fields as a JSON object, for example {"System.Tags": "soc; fortisoar"}.
Delete Branch 3 params
delete_branchdelete_branchDeletes a branch.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Branch
branchselect requiredBranch to delete.
Delete File In Repository 5 params
delete_existing_file_in_repositorydelete_existing_file_in_repositoryCommits the deletion of a file.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Branch
branchselect requiredBranch name, for example main or feature/example. The refs/heads/ prefix is optional.
- Commit Message
commit_messagetext requiredCommit message.
- File Path
file_pathtext requiredPath of the file to delete.
Execute API Request 5 params
execute_an_api_requestexecute_an_api_requestCalls any Azure DevOps REST endpoint of the organization with the connector credentials.
- Method
methodselect requiredHTTP method.
Options GETPOSTPUTPATCHDELETE - Endpoint
endpointtext requiredPath under the organization, for example /_apis/projects. Must not be a URL.
- Query Params
query_paramstextareaQuery parameters as a JSON object.
- Payload
payloadtextareaRequest body as a JSON value.
- Content Type
content_typetextContent-Type override, for example application/json-patch+json.
Get Commit 3 params
get_commitget_commitReturns one commit by SHA.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Commit Id
commit_idtext requiredCommit SHA (40 hex characters).
Get File From Repository 4 params
get_file_from_repositoryget_file_from_repositoryReads a file from a branch.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Branch
branchselectBranch to read from.
Default
main - Path
pathtext requiredFile path in the repository, for example /README.md.
Get Pipeline Run 3 params
get_pipeline_runget_pipeline_runReturns one pipeline run with its state and result.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Pipeline Id
pipeline_idselect requiredPipeline ID.
- Run Id
run_idselect requiredPipeline run ID.
Get Pull Request 2 params
get_pull_requests_by_idget_pull_requests_by_idReturns one pull request by ID.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Pull Request Id
pull_request_idselect requiredPull request ID.
Get Wiki Page 3 params
get_wiki_pageget_wiki_pageReads a wiki page with its content.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Wiki Id
wiki_idselect requiredWiki.
- Path
pathtextPage path, for example /Home.
Default
/Home
Get Work Item 2 params
get_work_itemget_work_itemReturns one work item with its fields.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Work Item Id
work_item_idselect requiredWork item ID.
List Audit Log 4 params
list_audit_loglist_audit_logLists organization audit entries in a time window (repo, pipeline and permission changes).
- Start Time
start_timetext requiredStart of the window, ISO 8601 UTC, for example 2000-01-01T00:00:00Z.
- End Time
end_timetext requiredEnd of the window, ISO 8601 UTC.
- Top
topintegerMaximum entries (1 to 200).
Default
100 - Action Ids
action_idstextComma-separated audit action IDs to keep, for example Git.RepoCreated,Pipelines.PipelineCreated.
Get Branch Options (dropdown) 3 params
list_branch_optionslist_branch_optionsLists the branches of the repository (or of a pipeline repository) for the Branch dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
- Repository Id
repository_idtextRepository (sibling value).
- Pipeline Id
pipeline_idintegerPipeline whose YAML repository is listed, when no repository is set.
List Branches 4 params
list_brancheslist_branchesLists the branches of a repository.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Filter Contains
filter_containstextOnly branches whose name contains this text.
- Top
topintegerMaximum number of items to return (1 to 1000).
Default
100
List Commits 4 params
list_commitslist_commitsLists commits, optionally on one branch.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Branch
branchselectBranch to list commits from. Leave empty for the default branch.
- Top
topintegerMaximum number of items to return (1 to 1000).
Default
100
Get Pipeline Options (dropdown) 1 param
list_pipeline_optionslist_pipeline_optionsLists the pipelines of the project for the Pipeline dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
Get Pipeline Run Options (dropdown) 2 params
list_pipeline_run_optionslist_pipeline_run_optionsLists the runs of the pipeline (the Pipeline sibling) for the Pipeline Run dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
- Pipeline Id
pipeline_idintegerPipeline (sibling value).
List Pipeline Runs 3 params
list_pipeline_runslist_pipeline_runsLists the recent runs of a pipeline.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Pipeline Id
pipeline_idselect requiredPipeline ID.
- Top
topintegerMaximum number of items to return (1 to 1000).
Default
100
List Pipelines 2 params
list_pipelineslist_pipelinesLists the pipelines in a project.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Top
topintegerMaximum number of items to return (1 to 1000).
Default
100
Get Project Options (dropdown)
list_project_optionslist_project_optionsLists the projects of the organization for the Project dropdown.
No parameters.
List Projects 2 params
list_projectslist_projectsLists the projects in the organization.
- Top
topintegerMaximum number of items to return (1 to 1000).
Default
100 - State Filter
state_filterselectProject state to list.
Default
wellFormedOptions wellFormedallcreatePendingdeleteddeletingnewunchanged
List Pull Request Comments 4 params
list_pull_request_commentlist_pull_request_commentLists the threads of a pull request, or the comments in one thread.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Pull Request Id
pull_request_idselect requiredPull request ID.
- Thread Id
thread_idintegerOnly this thread. Leave empty for all threads.
List Pull Request Commits 3 params
list_pull_request_commitslist_pull_request_commitsLists the commits of a pull request.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Pull Request Id
pull_request_idselect requiredPull request ID.
Get Pull Request Options (dropdown) 2 params
list_pull_request_optionslist_pull_request_optionsLists the pull requests of the repository, or of the project, for the Pull Request dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
- Repository Id
repository_idtextRepository (sibling value); empty lists the project.
List Pull Request Reviewers 3 params
list_pull_request_reviewerslist_pull_request_reviewersLists reviewers and their votes.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Pull Request Id
pull_request_idselect requiredPull request ID.
List Pull Requests 4 params
list_pull_requestslist_pull_requestsLists the pull requests of a repository.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Status
statusselectStatus filter.
Default
activeOptions allactiveabandonedcompletednotSet - Top
topintegerMaximum number of items to return (1 to 1000).
Default
100
List Repositories 1 param
list_repositorieslist_repositoriesLists the Git repositories in a project.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
Get Repository Options (dropdown) 1 param
list_repository_optionslist_repository_optionsLists the repositories of the project (the Project sibling) for the Repository dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
Get Service Connection Options (dropdown) 1 param
list_service_connection_optionslist_service_connection_optionsLists the service connections of the project for the Service Connection dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
List Service Connections 2 params
list_service_connectionslist_service_connectionsLists the service connections (endpoints) of a project.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Type
typetextService connection type, for example generic or github.
Get User Options (dropdown)
list_user_optionslist_user_optionsLists organization users (principal names) for the reviewer and user dropdowns.
No parameters.
List Users 1 param
list_userslist_usersLists the users in the organization (Graph).
- Top
topintegerMaximum number of items to return (1 to 1000).
Default
100
Get Wiki Options (dropdown) 1 param
list_wiki_optionslist_wiki_optionsLists the wikis of the project for the Wiki dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
List Work Item Comments 3 params
list_work_item_commentslist_work_item_commentsLists the comments of a work item.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Work Item Id
work_item_idselect requiredWork item ID.
- Top
topintegerMaximum number of items to return (1 to 1000).
Default
100
Get Work Item Options (dropdown) 1 param
list_work_item_optionslist_work_item_optionsLists open work items of the project for the Work Item dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
Get Work Item Type Options (dropdown) 1 param
list_work_item_type_optionslist_work_item_type_optionsLists the work item types of the project for the Work Item Type dropdown.
- Project
projecttextProject (sibling value, or the Default Project).
Push Files To Repository 5 params
push_repositorypush_repositoryCommits several text files to a branch in one push. Never deletes.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Branch
branchselect requiredBranch name, for example main or feature/example. The refs/heads/ prefix is optional.
- Commit Message
commit_messagetext requiredCommit message.
- Files
filestextarea requiredJSON object of path to text content. Paths missing from the object are not deleted.
Query Work Items 3 params
query_work_itemsquery_work_itemsRuns a WIQL query and returns the matching work items.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Wiql
wiqltextWIQL query text. Leave empty for all work items in the project.
- Top
topintegerMaximum number of items to return (1 to 1000).
Default
100
Revoke Service Connection Pipeline Access 3 params
revoke_service_connection_pipeline_accessrevoke_service_connection_pipeline_accessStops all pipelines using a service connection (authorized false), without deleting it.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Service Connection Id
service_connection_idselect requiredService connection.
- Authorized
authorizedcheckboxFalse removes access for all pipelines; true grants it to all.
Run Pipeline 4 params
run_pipelinerun_pipelineStarts a run of a pipeline, optionally on a branch with variables.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Pipeline Id
pipeline_idselect requiredPipeline ID.
- Branch
branchselectBranch to run, for example main. Leave empty for the default branch.
- Variables
variablestextareaPipeline variables as a JSON object (name to value).
Update File In Repository 7 params
update_file_in_repositoryupdate_file_in_repositoryReplaces or appends to a file on a branch.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Branch
branchselect requiredBranch name, for example main or feature/example. The refs/heads/ prefix is optional.
- Commit Message
commit_messagetext requiredCommit message.
- File Path
file_pathtext requiredPath of the file to change.
- Content
contenttextContent to write or append.
- Operation
operationselectReplace the file or append to it.
Default
replaceOptions replaceappend
Update Pull Request 7 params
update_pull_requestupdate_pull_requestChanges a pull request title, description, draft state or status (active or abandoned).
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Pull Request Id
pull_request_idselect requiredPull request ID.
- Title
titletextTitle
- Description
descriptiontextDescription
- Status
statusselectReactivate or abandon the pull request.
Options activeabandoned - Is Draft
is_draftcheckboxIs draft
Update Repository 4 params
update_repositoryupdate_repositoryRenames a repository or disables and re-enables it.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Repository Id
repository_idselect requiredRepository of the project, by name or ID.
- Name
nametextNew repository name.
- Is Disabled
is_disabledcheckboxDisable (true) or enable (false) the repository.
Update User Access 2 params
update_user_accessupdate_user_accessSets a user access level, for example none to remove access, through the user entitlements API.
- User
userselect requiredUser (principal name or identity GUID).
- Access Level
access_levelselectBasic (express), Stakeholder, or none (remove all access).
Default
expressOptions expressstakeholdernone
Update Work Item 3 params
update_work_itemupdate_work_itemSets fields on a work item, for example System.State, to sync status.
- Project
projectselectProject name or ID. Leave empty to use the Default Project configured on the connector.
- Work Item Id
work_item_idselect requiredWork item ID.
- Fields
fieldstextarea requiredFields to set, as a JSON object of field reference name to value, for example {"System.State": "Doing"}.