You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何获取所有Azure App Service的ftpsState?执行az命令后该字段返回null

解决Azure CLI查询应用服务ftpsState返回null的问题
  • 问题原因:az webapp list 默认不会返回站点配置(siteConfig)的详细数据,所以你指定的 siteConfig.ftpsState 字段会返回null。

  • 两种可行的解决命令:

    1. 添加 --include-site-config 参数获取完整站点配置:
      az webapp list --include-site-config --query "[].[name, siteConfig.ftpsState]"
      
    2. 直接查询默认返回结果中 properties 下的 ftpsState(该字段无需额外参数即可获取):
      az webapp list --query "[].[name, properties.ftpsState]"
      

执行上述任一命令后,就能正确获取到每个应用服务的ftpsState值(比如 Allowed、Disabled、FtpsOnly)。

内容的提问来源于stack exchange,提问作者DevMo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 21:08:10