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.
3 Answers
4
votes
You need to define two steps:
- deploy to deployment slot
- and swap slot
To deploy to deployment slot you need to mark it and provide slot name:
And next in swap step define action which is Swap Slots and which slot is going to be swapped:
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.




