2
votes

I'm trying to automate azure build & release pipeline by using az devops extension cli. I was able to create and run build pipelines. But unable to create release pipelines by only using the cli.

Microsoft docs is not helpful at all.

3

3 Answers

1
votes

Is there a way to create and release azure release pipeline using only az pipelines cli?

I am afraid we could create the azure release pipeline using only az pipelines cli but could not release it.

As the document az pipelines, we could to create the azure release pipeline by the command line:

az pipelines release create

Check the az pipelines release for some more details info.

But we could not release the azure release pipeline using only az pipelines cli, since there is no such command line to use. And the az pipelines runs still not work for release.

Hope this helps.

0
votes

It is possible to create a release from a pipeline but not a pipeline.

az pipelines release create --definition-name=MyPipeline

This will create a release from your pipeline.

0
votes

Thanks, The release is trigger and the deployment is not done using this az pipelines release create --definition-name=MyPipeline azure cli comments.

enter image description here