以编程方式将过渡槽位交换到Azure云服务中的生产槽位 [英] Programmatically Swap Staging Slot to Production Slot in Azure Cloud Service
问题描述
很遗憾,我们还没有从Azure云服务升级到App Service.但是我想知道如何通过发布任务自动将暂存插槽交换到生产插槽.
自动发布序列类似于:1)部署到暂存,2)手动确认以将暂存交换到生产插槽,以及3)(在收到手动确认后)交换插槽并删除暂存实例.
是的,因此此处的脚本可以交换暂存和生产插槽:
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.
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云服务中的生产槽位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!