3
votes

enter image description here

Hi!

I am using deployment slots to deploy my function app first on staging and then on production. I have the above two tasks in my release pipeline. After the function is deployed on the staging slot, I want to hold the swap task until someone (a user) verifies the deployment.

So, how can we add user approval before the slot swap task?

Thank you

2

2 Answers

2
votes

There is a task called "Manual Intervention" You can use that to pause pipeline and resume it when validation is complete.

So the steps would be:

  1. deploy to staging
  2. manual intervention -> validate and click on Resume button
  3. swap slots

https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/manual-intervention?view=azure-devops

2
votes

You can also try to split two tasks into two stages, and then set Pre-deployment approvals for the stage where slot swap task is located.

enter image description here