我正在尝试设置 Azure CLI 。第一步是为帐户文件创建存储。我正在使用我的开发者计划权益
订阅。
单击“创建存储”后出现错误:
Storage creation failed
Error:409
{"error":{"code":"MissingSubscriptionRegistration","message":"The subscription is not registered to use namespace 'Microsoft.Storage'. See https://aka.ms/rps-not-found for how to register subscriptions."}}
Can't create a storage account. Please try again.
如何解决这个问题?
最佳答案
您收到此错误的原因是管理存储帐户相关资源和事件的 Microsoft.Storage
资源提供程序未在您的 Azure 订阅中注册。
要解决此问题,请运行以下命令:
azure provider register --namespace "Microsoft.Storage" --subscription "<your subscription name or id>"
要获取订阅名称/ID,请运行以下命令:
azure account list
有关为何出现此错误的更多详细信息,请参阅:The subscription is not registered to use namespace 'Microsoft.DataFactory error
<小时/>如果您更喜欢 GUI,那么您也可以在 Azure 门户上进行操作:
- 在左侧 Pane 中点击
更多服务
,然后选择订阅
- 选择订阅,在我们的例子中
开发者计划权益
- 在
设置
区域中点击资源提供程序
- 找到
Microsoft.Storage
并点击注册
关于azure - 无法在 Azure Cloud Shell (CLI) 中为持久帐户文件创建存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44107943/