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

创建Container App时遇AuthorizationFailed授权错误,求解决方案

解决Azure Container App创建时的AuthorizationFailed错误

你遇到的错误详情:

{"code":"AuthorizationFailed","message":"The client 'XXXX.XXXXXX@uk.nationalgrid.com' with object id 'XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourceGroups/read' over scope '/subscriptions/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX/resourceGroups/my-environment' or the scope is invalid. If access was recently granted, please refresh your credentials."}

按以下步骤排查解决:

  • 确认权限分配:让订阅/资源组管理员在Azure门户的my-environment资源组「访问控制(IAM)」页面,给你的账号添加至少包含Microsoft.Resources/subscriptions/resourceGroups/read权限的角色(比如Reader、Contributor),确保角色分配的范围是该资源组。
  • 验证范围有效性:核对错误里的订阅ID和资源组名称是否准确,确认my-environment资源组确实存在于指定的订阅下。
  • 刷新认证凭证:如果刚拿到权限,先登出Azure门户或Azure CLI,重新登录刷新会话;用CLI的话执行az login重新认证。
  • 检查订阅级权限:确认你的账号有权访问目标订阅,部分场景下订阅级的权限限制会导致资源组操作失败。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.30 16:30:43