-1

How can we trigger CI/CD pipelines through powershell script?

James Z
  • 12,209
  • 10
  • 24
  • 44
kiran
  • 11
  • 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 Answers1

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