How can we trigger CI/CD pipelines through powershell script?
Asked
Active
Viewed 586 times
-1
-
I'd recommend reading https://stackoverflow.com/help/how-to-ask as a new contributor. You need to describe in more detail what you want to accomplish, and just as importantly, what you've tried. Searching for "powershell azure devops rest api" here or in Google will return a lot of good material. – WaitingForGuacamole Sep 08 '21 at 13:23
-
I'm able to run build with the powershell script in the below mentioned link but I'm unable to run release with the powershell script... – kiran Sep 19 '21 at 09:05
1 Answers
0
The easiest way would be use azure cli if is isntalled and
az pipelines build queue
Here you jave docs Get started with Azure DevOps CLI
Another option would rest API call. Here you have an example in powershell.

Krzysztof Madej
- 32,704
- 10
- 78
- 107