azure - 创建资源组失败并显示“没有授权”
问题描述
很长一段时间以来,我一直在逐步浏览 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.
我尝试退出培训帐户并重新登录,但是当我再次尝试此操作时,我得到了相同的结果。
解决方案
第一步是您要创建一个新资源组,但由于权限问题而失败。您需要拥有相关订阅的所有者权限才能创建资源组。
推荐阅读
- arrays - 如何在不添加新行的情况下在 WordPress 帖子内容中添加空间
- node.js - AWS Serverless 403 禁止 API 网关
- php - readFile 和 file_get_contents 呈现损坏的 PDF 和 PNG 文件,但 JPG 很好
- javascript - 避免在带有 Mocha 测试的 Elasticsearch 请求中使用 setTimeout()
- c# - 从获取请求中获取 null 但上下文返回值
- python - Gunicorn 重新加载未检测到应用程序代码中的更改
- r - 预测 lme4 中的值
- ios - 在 SwiftUI 中呈现新视图
- c - C printf : 条件格式取决于 int 值的基数
- reactjs - 无法解析 React Typescript 中的“crypto-js”