Execute YAML Release pipeline using Azure CLI

Viewed 18

My release pipelines are YAML based and I want to trigger it using CLI. The pipeline has multiple stages/environments like DEV, SIT, QA, UAT. If I trigger the pipeline using

az pipelines run  --organization $(org) --project $(proj) --name $(pipeline-name) --branch $(pipeline-branch) 

it triggers the pipeline and deploys from DEV.

My need is to run the pipeline for a specific environment, say if I want to deploy only to SIT and not start from DEV how to do it.

No --environment or --stages exist in az pipelines run.

Tried with REST API as well but could not due to poor documentation.

Please help me in triggering the pipeline for deployment directly to a specific environment ?

0 Answers
Related