Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
617 stars 239 forks source link

[Feature Request] Release definition creation via Azure CLI #949

Open Cadacious opened 4 years ago

Cadacious commented 4 years ago

Is your feature request related to a problem? Please describe. We have the ability to create Build definitions via Azure CLI via the az pipelines create command but no ability to create Release definitions. The 'az pipelines release create' command creates a new release within an existing definition, it does not allow creation of a new definition. This action is possible via REST API but not in Azure CLI natively.

Describe the solution you'd like Either a new command specific to release definition creation or a parameter added to 'az pipelines create' that allows creation of either type of resource.

Additional context Submitting a feature request was recommended on this article.

Wind010 commented 1 year ago

Would be nice to have. Resorting to calling the REST API for now. https://learn.microsoft.com/en-us/rest/api/azure/devops/release/definitions/create?view=azure-devops-rest-6.0&tabs=HTTP

sreich commented 3 days ago

Are there any updates on this? It has been 4 years since user reported this. I am also interested in this feature...

It seems currently the Microsoft supported way of updating release pipeline definitions is to manually update each one by hand... Which is very error prone

This is puzzling because if you have even a small number of pipelines, it ends up requiring literally, thousands of clicks. That combined with cloning having bugs with missing fields...

This is with the GUI release pipeline. Which, despite Microsoft recommending to move to yaml for them, there's just no way. There's still so many basic features that yaml is missing that corporate environments find non starters.

The situation is troublesome to deal with because when a basic change(such as adding a user to approvals) of switching release approvals or flows, requires updating every single one by hand, and again, results in needing thousands of clicks from the developer...

Yes there is the REST API....

But updating definitions is significantly more complex to do properly via such an API, the documentation is also very unclear on the esoteric nature of it. Resorting to surprises even on stack overflow as people try to do it themselves.

Tools and scripts do not currently elaborately do this. Though I did find 1 single script randomly on GitHub that may do it...

It would be nice for this tool to support it, because Microsoft hasn't provided anything in the product for it