DEV Community

Cover image for What is the difference? Azure Pipelines PRE and POST Deployment Approvals
Davide 'CoderDave' Benvegnù
Davide 'CoderDave' Benvegnù

Posted on

What is the difference? Azure Pipelines PRE and POST Deployment Approvals

It is very common to ask for approval during a release pipeline, especially when deploying to important environments like QA, Production, etc..

Azure Pipelines offers the Approval feature to do so, and it comes in 2 flavors: Pre-deployment and Post-deployment approvals.

But what is the difference between those 2 methods? And why it matters?

Let's discover it together.

Intro

Today we talk about Release flow control using approvals, and more specifically about the different behavior that the Pre-deployment and the Post-deployment approvals have when using Azure Pipelines.

First of all, I should say that this applies to the Classic Release experience only, because with the Multistage YAML Pipelines you can define only some "generic" approvals at environment level and those are de-facto pre-deployment approvals. I made a video about Azure Pipelines Environments where I also cover the approvals for YAML Pipelines, I encourage you to check it out if you are into YAML Pipelines.

Alright, so you are using the Classic Release Pipelines and wanna ask for Approval. Should you use the pre- or the post-deployment approval? What are the differences between those 2?

The Video

To answer these questions and show you how to set and work with those kind of approvals, I created an example and I've gone through that in the video below.

Enjoy the watch!

Conclusion

As you have seen, the behavior between the 2 is pretty different.

What do you think?

Let me know in the comment section below if you prefer using the Pre or the Post deployment approvals and why.

References and Links

Top comments (4)

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Which one do you prefer? Pre or Post approvals?

Some comments may only be visible to logged-in visitors. Sign in to view all comments.