Sean
Sean

Reputation: 41

Programmatically Swap Staging Slot to Production Slot in Azure Cloud Service

So unfortunately we haven't upgraded from Azure Cloud Service to App Service yet. But I'm wondering how to automatically swap the Staging slot to Production slot with a Release Task.

The automated Release sequence is something like: 1) deploy to staging, 2) manual confirmation to swap staging to production slot, and 3) (after manual confirmation received) swap slots and delete staging instance.

Upvotes: 0

Views: 519

Answers (1)

Sean
Sean

Reputation: 41

Yes so the script from here works to swap Staging and Production slots:

https://gallery.technet.microsoft.com/scriptcenter/Swap-the-Deployments-f588a811

However, I had to set the Azure Powershell task to use an older version and classic resources.

Screen shots:

Azure Powershell Task Version

Azure Powershell Version

Upvotes: 1

Related Questions