部署指定了 DoNotStart 的 CloudService

Deploying a CloudService with DoNotStart specified

我正在尝试通过 VSTS 自动构建部署 Azure 云服务(经典) 应用程序。大多数事情对我来说都运行良好,但我无法弄清楚如何让 Azure Cloud Service Deployment 任务将 -DoNotStart 标志传递给对 New-AzureDeployment 的基础调用。在折叠的 "Advanced Options for Creating New Service" 下有一个 "Additional arguments" 字段,但据我所知,这些似乎只传递给 New-AzureService 调用而不传递给 New-AzureDeployment 调用。

知道如何在不使用自定义 PowerShell 脚本的情况下执行此操作吗?如果可以的话,我真的很想不必维护 PS 脚本。

根据Azure Cloud Service Deployment任务的源代码,无法指定-DoNotStart参数。

因此,您需要通过 PowerShell 脚本来完成,您可以考虑创建一个自定义构建任务:Add a build task

另一方面,有反馈:DoNotStart parameter for Azure Cloud Service Deployment (New-AzureDeployment)