azure - 使用 Azure CLI 设置 Azure 网站 AlwaysOn

标签 azure azure-web-app-service azure-pipelines azure-cli

对于 Visual Studio Team Services 持续集成,我想禁用“Always On”,释放,然后启用它。 (因为NewRelic发布时需要禁用AlwaysOn,所以使用特定的dll)

我们可以使用 Azure CLI 设置 AlwaysOn 吗?我在文档中没有找到它

最佳答案

azure webapp config set RGName WebAppName --alwayson true

来源:azure webapp config --help

Update 8/28/2018:

The syntax has changed. Now it's

az webapp config set --name mywebapp --resource-group myresourcegroup --always-on true

See https://learn.microsoft.com/en-us/cli/azure/webapp/config?view=azure-cli-latest#az-webapp-config-set

关于azure - 使用 Azure CLI 设置 Azure 网站 AlwaysOn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40928966/

相关文章:

azure-devops - 将多个管道作业的结果合并到 azure web 应用程序包中

azure - 如何让 Azure 应用服务在静态站点上添加自定义 HTTP 响应 header ?

tfs - VSTS : Execute conditional tasks on builds

azure - 如何更新Azure管道上的maven Artifact 的版本?

azure - 使用 OpenTelemetry 的 Azure 上的 App Insights 中的组件名称不正确

c# - 如何使用azure sql进行多接口(interface)框架

android - 404 未找到 - 仅来自移动设备

.net - 无法解析属性 'CosmosDBAttribute.ConnectionStringSetting' 的值,但它已添加到应用程序设置中

azure - 在 Azure Devops Pipeline 中构建 API 和集成测试工件

azure - Azure redis 缓存补丁计划配置中的维护窗口属性是什么?