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

如何通过Azure CLI启用Azure App Service的公网访问权限

解决Azure App Service公网访问限制的CLI命令
  • 控制App Service公网访问开关的参数是--allow-unmatched,对应门户中"允许公网访问"的设置:

    • 设为true:允许未匹配访问规则的流量(即开启公网访问)
    • 设为false:拒绝未匹配访问规则的流量(即关闭公网访问,也就是你当前的状态)
  • 执行以下命令将公网访问改为允许:

    az webapp config access-restriction set --name <你的应用服务名称> --resource-group <你的资源组名称> --allow-unmatched true
    
  • 修改完成后,可使用az webapp config access-restriction add命令添加新的访问限制规则。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.23 10:47:33