Forrest logo
back to the az tool

az-pipelines:tldr:5520f

az-pipelines: Create a new Azure Pipeline (YAML based).
$ az pipelines create --org ${organization_url} --project ${project_name} --name ${pipeline_name} --description ${description} --repository ${repository_name} --branch ${branch_name}
try on your machine

This command is used to create a new pipeline in Azure DevOps. Here is an explanation of the different parameters:

  • az: This is the Azure command-line interface (CLI).

  • pipelines: This is the Azure DevOps pipelines command.

  • create: This is the specific command to create a new pipeline.

  • --org ${organization_url}: This parameter specifies the URL of the Azure DevOps organization where the project exists. You need to replace ${organization_url} with the actual URL.

  • --project ${project_name}: This parameter specifies the name or ID of the project where the pipeline will be created. You need to replace ${project_name} with the actual project name.

  • --name ${pipeline_name}: This parameter specifies the name of the pipeline that will be created. You need to replace ${pipeline_name} with the desired pipeline name.

  • --description ${description}: This parameter specifies an optional description for the pipeline. You need to replace ${description} with the desired pipeline description.

  • --repository ${repository_name}: This parameter specifies the name or ID of the repository that the pipeline will be associated with. You need to replace ${repository_name} with the actual repository name.

  • --branch ${branch_name}: This parameter specifies the branch of the repository that the pipeline will be triggered from. You need to replace ${branch_name} with the actual branch name.

Overall, this command creates a new pipeline in Azure DevOps with the provided configuration.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool