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.
You need to define two steps:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With