Azure ARM - 用于Web应用程序的HttpsOnly

问题描述 投票:1回答:1

我尝试过以下azure命令:

az webapp update --resource-group <YourResourceGroupName> --name <YourWebAppName> --set httpsOnly=true

但是我收到了以下回复:

az:错误:无法识别的参数: - set httpsOnly = true

我在docker image azuresdk/azure-cli-python版本2.0.23中运行命令

编辑:

我的错误:我没有运行az updateaz deployment(顺便说一句应该支持httpsOnly旗IMO)。

azure azure-resource-manager azure-cli
1个回答
0
投票

我们应该使用此命令为Azure Web应用程序设置HttpsOnly

az webapp update --resource-group <YourResourceGroupName> --name <YourWebAppName> --set HttpsOnly=true

我在Azure云外壳中运行此命令,这对我有用:

enter image description here

enter image description here

我们也可以通过Azure门户检查它:

enter image description here

注意:

Azure CLI版本是2.0.23,我们可以找到CLI 2.0版本here,我们可以按照这个link安装Azure CLI 2.0。

© www.soinside.com 2019 - 2024. All rights reserved.