Azure Pipelines: How can I pre-approve stages?

Sagel, Anton 0 Reputation points
2025-02-20T13:42:01.8666667+00:00

My YAML pipeline deploys my code to 5 different environments on Azure.

Before it can deploy to an environment, the previous environment has to be successfully deployed and a manual approval has to be given. This should not change.

The problem is that if I want to deploy to all environments up to Prod (Dev+Test+QA+UAT), I have to wait for It to finish building the code, then approve Dev, then wait for It to deploy to Dev, then approve Test, then wait again, then approve again.....

This is very time consuming and I would like to be able to approve multiple environments at the start and then it just deploys to all I have approved (assuming the ones before have been successfully deployed).

User's image

Deployment
Deployment
The process of delivering, assembling, and maintaining a particular version of a software system at a site.
9 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.