【问题标题】:Azure CLI - Setting Incoming Client Certificates to Allowed for a Web AppAzure CLI - 将传入客户端证书设置为允许 Web 应用程序
【发布时间】:2021-02-27 19:31:14
【问题描述】:

我正在尝试使用 Azure CLI 更新 Web 应用 > 配置 > 常规设置 > 传入客户端证书下的传入客户端证书选项以使用值允许。

目前我只能将值设置为与 Require/Ignore 相关的 true/false。

az webapp update --set clientCertEnabled=true--name MyWebApp --resource-group MyRsGrp

我无法在参考文档中找到任何内容。

https://docs.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#az_webapp_update

有没有人有很好的方法来配置这个设置?谢谢!

【问题讨论】:

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


    【解决方案1】:

    要将其设置为Allow,需要设置两个属性,clientCertEnabledclientCertModeclientCertMode在命令az webapp update中不可用,需要使用az resource update

    只需使用下面的命令,它对我有用。

    az resource update --name <webapp-name> --resource-group <group-name> --namespace Microsoft.Web --resource-type sites --set properties.clientCertEnabled=true properties.clientCertMode=Optional 
    

    【讨论】:

    • 我已经测试过这个解决方案,它运行良好。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2018-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多