visual-studio - 从 Visual Studio 交换产品 <> 暂存 Azure 应用程序插槽

标签 visual-studio powershell azure azure-web-app-service azure-api-apps

我正在尝试简化我的工作流程。目前,我所做的是:

  1. 从 VS 部署到暂存(右键单击 > 发布)
  2. 冒烟测试
  3. 交换产品 <> 从 Azure 门户中暂存

我试图留在 VS 内。我知道我可以使用 Powershell 启动交换操作 - 纯粹在 Visual Studio 中实现此目的最明智的方法是什么?

最佳答案

@RobVious, 根据您的描述,我建议您可以使用命令“Switch-AzureWebsiteSlot”,请引用blog .

同时,据我所知,我们还可以使用powershell通过TFS上的部署来交换暂存和生产。 。

关于visual-studio - 从 Visual Studio 交换产品 <> 暂存 Azure 应用程序插槽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38669556/

相关文章:

exception - 电源外壳 2 : How to determine what exceptions a cmdlet can throw?

powershell - PowerShell 中的 Azure 函数用于解压文件

powershell - 相当于 LINQ 的 Select 的 PowerShell 是什么?

c# - 为什么任务并行不能加快上传/下载速度?

Azure 数据工厂架构,包含 Azure SQL 数据库到 Power BI

visual-studio - Visual Studio 2008 Team System 中缺少源代码管理菜单项

visual-studio - 有没有办法将 Visual Studio 或 MATLAB 中的程序执行顺序设为 "map"?

visual-studio - 解决方案 : Payload contains two or more files with the same destination path 'App.xbf' 中的两个应用

Azure CI 管道忽略了我的 botdetect.xml 文件

c# - VS 2017 的任务窗口中的 "Status" "Scheduled"是什么意思?