2021-11-04 08:19:26 +01:00
|
|
|
# az pipelines
|
|
|
|
|
|
|
|
> Manage Azure Pipelines resources.
|
2023-10-15 09:42:29 +02:00
|
|
|
> Part of `azure-cli` (also known as `az`).
|
2022-10-04 20:36:23 +05:30
|
|
|
> More information: <https://learn.microsoft.com/cli/azure/pipelines>.
|
2021-11-04 08:19:26 +01:00
|
|
|
|
|
|
|
- Create a new Azure Pipeline (YAML based):
|
|
|
|
|
2025-05-11 20:07:11 +03:00
|
|
|
`az pipelines create {{[--org|--organization]}} {{organization_url}} {{[-p|--project]}} {{project_name}} --name {{pipeline_name}} --description {{description}} --repository {{repository_name}} --branch {{branch_name}}`
|
2021-11-04 08:19:26 +01:00
|
|
|
|
|
|
|
- Delete a specific pipeline:
|
|
|
|
|
2025-05-11 20:07:11 +03:00
|
|
|
`az pipelines delete {{[--org|--organization]}} {{organization_url}} {{[-p|--project]}} {{project_name}} --id {{pipeline_id}}`
|
2021-11-04 08:19:26 +01:00
|
|
|
|
|
|
|
- List pipelines:
|
|
|
|
|
2025-05-11 20:07:11 +03:00
|
|
|
`az pipelines list {{[--org|--organization]}} {{organization_url}} {{[-p|--project]}} {{project_name}}`
|
2021-11-04 08:19:26 +01:00
|
|
|
|
|
|
|
- Enqueue a specific pipeline to run:
|
|
|
|
|
2025-05-11 20:07:11 +03:00
|
|
|
`az pipelines run {{[--org|--organization]}} {{organization_url}} {{[-p|--project]}} {{project_name}} --name {{pipeline_name}}`
|
2021-11-04 08:19:26 +01:00
|
|
|
|
|
|
|
- Get the details of a specific pipeline:
|
|
|
|
|
2025-05-11 20:07:11 +03:00
|
|
|
`az pipelines show {{[--org|--organization]}} {{organization_url}} {{[-p|--project]}} {{project_name}} --name {{pipeline_name}}`
|
2021-11-04 08:19:26 +01:00
|
|
|
|
|
|
|
- Update a specific pipeline:
|
|
|
|
|
2025-05-11 20:07:11 +03:00
|
|
|
`az pipelines update {{[--org|--organization]}} {{organization_url}} {{[-p|--project]}} {{project_name}} --name {{pipeline_name}} --new-name {{pipeline_new_name}} --new-folder-path {{user1/production_pipelines}}`
|
2021-11-04 08:19:26 +01:00
|
|
|
|
2024-01-31 00:55:19 -03:00
|
|
|
- List all agents in a pool:
|
2021-11-04 08:19:26 +01:00
|
|
|
|
2025-05-11 20:07:11 +03:00
|
|
|
`az pipelines agent list {{[--org|--organization]}} {{organization_url}} --pool-id {{agent_pool}}`
|