Dio*_*ado 4 azure azure-cli azure-web-app-service health-check
有没有办法在azure应用程序服务中通过cli启用健康检查?我发现我们可以修改一些配置,但不能修改启用/禁用该功能的选项。
谢谢你!
根据我的测试,我们可以通过更改 web config 的值来启用/禁用健康检查healthCheckPath
。欲了解更多详情,请参阅此处。
例如(我通过azure cloud shell进行测试)
A。使能够
az webapp config set -g <groupName> -n <web name> --generic-configurations '{"healthCheckPath": "/api/health/"}'
Run Code Online (Sandbox Code Playgroud)
b.禁用
az webapp config set -g <groupName> -n <web name> --generic-configurations '{"healthCheckPath": ""}'
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3082 次 |
最近记录: |