az pipelines
Note
This reference is part of the azure-devops extension for the Azure CLI (version 2.30.0 or higher). The extension will automatically install the first time you run an az pipelines command. Learn more about extensions.
Manage Azure Pipelines.
This command group is a part of the azure-devops extension.
Commands
Name | Description | Type | Status |
---|---|---|---|
az pipelines agent |
Manage agents. |
Extension | GA |
az pipelines agent list |
Get a list of agents in a pool. |
Extension | GA |
az pipelines agent show |
Show agent details. |
Extension | GA |
az pipelines build |
Manage builds. |
Extension | GA |
az pipelines build cancel |
Cancels if build is running. |
Extension | GA |
az pipelines build definition |
Manage build definitions. |
Extension | GA |
az pipelines build definition list |
List build definitions. |
Extension | GA |
az pipelines build definition show |
Get the details of a build definition. |
Extension | GA |
az pipelines build list |
List build results. |
Extension | GA |
az pipelines build queue |
Request (queue) a build. |
Extension | GA |
az pipelines build show |
Get the details of a build. |
Extension | GA |
az pipelines build tag |
Manage build tags. |
Extension | GA |
az pipelines build tag add |
Add tag(s) for a build. |
Extension | GA |
az pipelines build tag delete |
Delete a build tag. |
Extension | GA |
az pipelines build tag list |
Get tags for a build. |
Extension | GA |
az pipelines create |
Create a new Azure Pipeline (YAML based). |
Extension | GA |
az pipelines delete |
Delete a pipeline. |
Extension | GA |
az pipelines folder |
Manage folders for organizing pipelines. |
Extension | GA |
az pipelines folder create |
Create a folder. |
Extension | GA |
az pipelines folder delete |
Delete a folder. |
Extension | GA |
az pipelines folder list |
List all folders. |
Extension | GA |
az pipelines folder update |
Update a folder name or description. |
Extension | GA |
az pipelines list |
List pipelines. |
Extension | GA |
az pipelines pool |
Manage agent pools. |
Extension | GA |
az pipelines pool list |
List agent pools. |
Extension | GA |
az pipelines pool show |
Show agent pool details. |
Extension | GA |
az pipelines queue |
Manage agent queues. |
Extension | GA |
az pipelines queue list |
List agent queues. |
Extension | GA |
az pipelines queue show |
Show details of agent queue. |
Extension | GA |
az pipelines release |
Manage releases. |
Extension | GA |
az pipelines release create |
Request (create) a release. |
Extension | GA |
az pipelines release definition |
Manage release definitions. |
Extension | GA |
az pipelines release definition list |
List release definitions. |
Extension | GA |
az pipelines release definition show |
Get the details of a release definition. |
Extension | GA |
az pipelines release list |
List release results. |
Extension | GA |
az pipelines release show |
Get the details of a release. |
Extension | GA |
az pipelines run |
Queue (run) a pipeline. |
Extension | GA |
az pipelines runs |
Manage pipeline runs. |
Extension | GA |
az pipelines runs artifact |
Manage pipeline run artifacts. |
Extension | GA |
az pipelines runs artifact download |
Download a pipeline artifact. |
Extension | GA |
az pipelines runs artifact list |
List artifacts associated with a run. |
Extension | GA |
az pipelines runs artifact upload |
Upload a pipeline artifact. |
Extension | GA |
az pipelines runs list |
List the pipeline runs in a project. |
Extension | GA |
az pipelines runs show |
Show details of a pipeline run. |
Extension | GA |
az pipelines runs tag |
Manage pipeline run tags. |
Extension | GA |
az pipelines runs tag add |
Add tag(s) for a pipeline run. |
Extension | GA |
az pipelines runs tag delete |
Delete a pipeline run tag. |
Extension | GA |
az pipelines runs tag list |
Get tags for a pipeline run. |
Extension | GA |
az pipelines show |
Get the details of a pipeline. |
Extension | GA |
az pipelines update |
Update a pipeline. |
Extension | GA |
az pipelines variable |
Manage pipeline variables. |
Extension | GA |
az pipelines variable-group |
Manage variable groups. |
Extension | GA |
az pipelines variable-group create |
Create a variable group. |
Extension | GA |
az pipelines variable-group delete |
Delete a variable group. |
Extension | GA |
az pipelines variable-group list |
List variable groups. |
Extension | GA |
az pipelines variable-group show |
Show variable group details. |
Extension | GA |
az pipelines variable-group update |
Update a variable group. |
Extension | GA |
az pipelines variable-group variable |
Manage variables in a variable group. |
Extension | GA |
az pipelines variable-group variable create |
Add a variable to a variable group. |
Extension | GA |
az pipelines variable-group variable delete |
Delete a variable from variable group. |
Extension | GA |
az pipelines variable-group variable list |
List the variables in a variable group. |
Extension | GA |
az pipelines variable-group variable update |
Update a variable in a variable group. |
Extension | GA |
az pipelines variable create |
Add a variable to a pipeline. |
Extension | GA |
az pipelines variable delete |
Delete a variable from pipeline. |
Extension | GA |
az pipelines variable list |
List the variables in a pipeline. |
Extension | GA |
az pipelines variable update |
Update a variable in a pipeline. |
Extension | GA |
az pipelines create
Create a new Azure Pipeline (YAML based).
az pipelines create --name
[--branch]
[--description]
[--detect {false, true}]
[--folder-path]
[--org]
[--project]
[--queue-id]
[--repository]
[--repository-type {github, tfsgit}]
[--service-connection]
[--skip-first-run {false, true}]
[--yaml-path]
Examples
Create an Azure Pipeline from local checkout repository context
Repository name/url (--repository), type (--repository-type) and branch name (--branch) will be detected from the local git repository
az pipelines create --name 'ContosoBuild' --description 'Pipeline for contoso project'
Create an Azure Pipeline for a repository hosted on Github using clone url
az pipelines create --name 'ContosoBuild' --description 'Pipeline for contoso project'
--repository https://github.com/SampleOrg/SampleRepo --branch master
Create an Azure Pipeline for a repository hosted on Github organization SampleOrg, repository name SampleRepo
az pipelines create --name 'ContosoBuild' --description 'Pipeline for contoso project'
--repository SampleOrg/SampleRepoName --branch master --repository-type github
Create an Azure Pipeline for a repository hosted in a Azure Repo in the same project
az pipelines create --name 'ContosoBuild' --description 'Pipeline for contoso project'
--repository SampleRepoName --branch master --repository-type tfsgit
Create an Azure Pipeline for a repository with the pipeline yaml already checked in into the repository
Service connection required for non Azure Repos can be optionally provided in the command to run it non interatively
az pipelines create --name 'ContosoBuild' --description 'Pipeline for contoso project'
--repository https://github.com/SampleOrg/SampleRepo --branch master --yml-path azure-pipelines.yml [--service-connection SERVICE_CONNECTION]
Required Parameters
Name of the new pipeline.
Optional Parameters
Branch name for which the pipeline will be configured. If omitted, it will be auto-detected from local repository.
Description for the new pipeline.
Automatically detect organization.
Path of the folder where the pipeline needs to be created. Default is root folder. e.g. "user1/test_pipelines".
Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.
Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.
Id of the queue in the available agent pools. Will be auto detected if not specified.
Repository for which the pipeline needs to be configured. Can be clone url of the git repository or name of the repository for a Azure Repos or Owner/RepoName in case of GitHub repository. If omitted it will be auto-detected from the remote url of local git repository. If name is mentioned instead of url, --repository-type argument is also required.
Type of repository. If omitted, it will be auto-detected from remote url of local repository. 'tfsgit' for Azure Repos, 'github' for GitHub repository.
Id of the Service connection created for the repository for GitHub repository. Use command az devops service-endpoint -h for creating/listing service_connections. Not required for Azure Repos.
Specify this flag to prevent the first run being triggered by the command. Command will return a pipeline if run is skipped else it will output a pipeline run.
Path of the pipelines yaml file in the repo (if yaml is already present in the repo).
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az pipelines delete
Delete a pipeline.
az pipelines delete --id
[--detect {false, true}]
[--org]
[--project]
[--yes]
Required Parameters
ID of the pipeline.
Optional Parameters
Automatically detect organization.
Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.
Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az pipelines list
List pipelines.
az pipelines list [--detect {false, true}]
[--folder-path]
[--name]
[--org]
[--project]
[--query-order {ModifiedAsc, ModifiedDesc, NameAsc, NameDesc, None}]
[--repository]
[--repository-type {bitbucket, git, github, githubenterprise, svn, tfsgit, tfsversioncontrol}]
[--top]
Optional Parameters
Automatically detect organization.
If specified, filters to definitions under this folder.
Limit results to pipelines with this name or starting with this name. Examples: "FabCI" or "Fab*".
Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.
Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.
Order of the results.
Limit results to pipelines associated with this repository.
Limit results to pipelines associated with this repository type. It is mandatory to pass 'repository' argument along with this argument.
Maximum number of pipelines to list.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az pipelines run
Queue (run) a pipeline.
az pipelines run [--branch]
[--commit-id]
[--detect {false, true}]
[--folder-path]
[--id]
[--name]
[--open]
[--org]
[--parameters]
[--project]
[--variables]
Optional Parameters
Name of the branch on which the pipeline run is to be queued. Example: refs/heads/master or master or refs/pull/1/merge or refs/tags/tag.
Commit-id on which the pipeline run is to be queued.
Automatically detect organization.
Folder path of pipeline. Default is root level folder.
ID of the pipeline to queue. Required if --name is not supplied.
Name of the pipeline to queue. Ignored if --id is supplied.
Open the pipeline results page in your web browser.
Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.
Space separated "name=value" pairs for the parameters you would like to set.
Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.
Space separated "name=value" pairs for the variables you would like to set.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az pipelines show
Get the details of a pipeline.
az pipelines show [--detect {false, true}]
[--folder-path]
[--id]
[--name]
[--open]
[--org]
[--project]
Optional Parameters
Automatically detect organization.
Folder path of pipeline. Default is root level folder.
ID of the pipeline.
Name of the pipeline. Ignored if --id is supplied.
Open the pipeline summary page in your web browser.
Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.
Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az pipelines update
Update a pipeline.
az pipelines update --id
[--branch]
[--description]
[--detect {false, true}]
[--new-folder-path]
[--new-name]
[--org]
[--project]
[--queue-id]
[--yaml-path]
Required Parameters
Id of the pipeline to update.
Optional Parameters
Branch name for which the pipeline will be configured.
New description for the pipeline.
Automatically detect organization.
New full path of the folder to move the pipeline to. e.g. "user1/production_pipelines".
New updated name of the pipeline.
Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.
Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.
Queue id of the agent pool where the pipeline needs to run.
Path of the pipelines yaml file in the repo.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI