Reputation: 149
I have a suitation where I have to trigger my release pipeline using power shell so I have to use azure cli so is their any command which trigger my release pipeline using azure cli
Upvotes: 1
Views: 3010
Reputation: 40553
Please take a look here
az pipelines release create [--artifact-metadata-list]
[--definition-id]
[--definition-name]
[--description]
[--detect {false, true}]
[--only-show-errors]
[--open]
[--org]
[--project]
Please install first Azure DevOps CLI Extension
I just run this and release was created and queued:
az pipelines release create --org https://dev.azure.com/thecodemanual --project "Devops Manual" --definition-id 1
Upvotes: 7
Reputation: 1
Incase you are looking for login to azure devops through az cli refer below cmd before firing the cmd suggested by @krzysztof
echo $azpat | az devops login --organization https://dev.azure.com/yourorg/
Upvotes: -2