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

如何通过Azure CLI查看ContainerApp的入口流量限制设置?

查看Azure Container Apps入口流量限制设置

要精准获取容器应用的入口流量限制配置(允许所有流量/仅限虚拟网络/仅限容器应用环境),需要查看properties.configuration.ingress.accessRestrictions字段,以下是具体操作:

  • 单容器应用查询:
    执行az containerapp show命令并指定查询参数,直接提取访问限制规则:

    az containerapp show --name <容器应用名称> --resource-group <资源组名称> --query "properties.configuration.ingress.accessRestrictions"
    
  • 批量查询资源组内所有容器应用:
    使用az containerapp list结合查询参数,批量展示每个应用的名称和对应访问限制:

    az containerapp list --resource-group <资源组名称> --query "[].{name:name, accessRestrictions:properties.configuration.ingress.accessRestrictions}"
    

返回结果解读

  • 允许所有流量:返回规则中包含"action": "Allow"且"ipAddressRange": "0.0.0.0/0",或accessRestrictions为空(同时external为true时)
  • 仅限虚拟网络流量:规则仅包含虚拟网络地址范围,或存在"serviceTag": "VirtualNetwork"的允许规则
  • 仅限容器应用环境内流量:规则中包含"serviceTag": "ContainerAppsEnvironment"的允许规则

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.24 05:03:09