首页 > 解决方案 > 创建资源组失败并显示“没有授权”

问题描述

很长一段时间以来,我一直在逐步浏览 MS Azure 培训文档。我发现这些练习始终有效。但是,今天我正在阅读“使用 Azure 容器实例运行 Docker 容器练习 - 运行 Azure 容器实例”,并且遇到了一致的错误。

第一步,我必须运行它:

az group create --name learn-deploy-aci-rg --location eastus

始终失败:

The client 'live.com#xxxxxx@gmail.com' with object id
'xxxxxxx' does not have authorization to
perform action
'Microsoft.Resources/subscriptions/resourcegroups/write' over scope
'/subscriptions/xxxxxxxx/resourcegroups/learn-deploy-aci-rg'
or the scope is invalid. If access was recently granted, please
refresh your credentials.

我尝试退出培训帐户并重新登录,但是当我再次尝试此操作时,我得到了相同的结果。

标签: azure

解决方案


第一步是您要创建一个新资源组,但由于权限问题而失败。您需要拥有相关订阅的所有者权限才能创建资源组。


推荐阅读