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

能否通过AZ CLI更新Azure Static Web Apps的staticwebapp配置JSON文件?

Azure Static Web Apps 配置文件更新方式

你可以直接通过Azure CLI更新staticwebapp.config.json,不需要执行完整的部署操作,步骤如下:

  • 准备好本地修改后的staticwebapp.config.json文件
  • 运行以下CLI命令完成更新:
    az staticwebapp config set --name <你的静态Web应用名称> --resource-group <对应资源组名称> --config-file-path ./staticwebapp.config.json
    
  • 验证更新结果,可使用命令:
    az staticwebapp config show --name <你的静态Web应用名称> --resource-group <对应资源组名称>
    

注意:这种方式仅适合短期应急场景,长期管理建议通过代码仓库结合部署流水线(如GitHub Actions)来维护配置文件,保证配置的版本可控和部署一致性。

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

相关产品推荐
方舟 Agent Plan

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

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