以编程方式将过渡槽位交换到Azure云服务中的生产槽位 [英] Programmatically Swap Staging Slot to Production Slot in Azure Cloud Service

查看:45
本文介绍了以编程方式将过渡槽位交换到Azure云服务中的生产槽位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很遗憾,我们还没有从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆