Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How swap slots in azure devops

I have two slots Prod and PreProd. How do I swap slots in azure devops release pipeline? The first one is deploying to preprod after success then it is going to approval if approved then going to deploy to production. But I need to swap slots between preprod and prod.

enter image description here

like image 642
Noor All Safaet Avatar asked Sep 12 '25 11:09

Noor All Safaet


1 Answers

You need to define two steps:

  • deploy to deployment slot
  • and swap slot

enter image description here

To deploy to deployment slot you need to mark it and provide slot name:

enter image description here

And next in swap step define action which is Swap Slots and which slot is going to be swapped:

enter image description here

And please read this blog entry if you are going to make swaps between preprod and prod environments. He disadvices this approach. And I fully agree with him.

like image 168
Krzysztof Madej Avatar answered Sep 15 '25 01:09

Krzysztof Madej