azure - 无法在 Azure Cloud Shell (CLI) 中为持久帐户文件创建存储

标签 azure command-line-interface storage

我正在尝试设置 Azure CLI 。第一步是为帐户文件创建存储。我正在使用我的开发者计划权益订阅。

Persist account files dialog

单击“创建存储”后出现错误:

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.

如何解决这个问题?

Storage creation failed

最佳答案

您收到此错误的原因是管理存储帐户相关资源和事件的 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 门户上进行操作:

  1. 在左侧 Pane 中点击更多服务,然后选择订阅
  2. 选择订阅,在我们的例子中开发者计划权益
  3. 设置区域中点击资源提供程序
  4. 找到 Microsoft.Storage 并点击注册

关于azure - 无法在 Azure Cloud Shell (CLI) 中为持久帐户文件创建存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44107943/

相关文章:

java - 从 Java 对象生成 CSV 并移动到 Azure 存储,无需中间位置

azure - 将dependsOn 设置为上一阶段,而不对Azure Pipelines 中的值进行硬编码

sql - 从同一 Azure SQL Server 上的其他数据库调用主数据库的函数

linux - 如何通过 linux 命令行将复杂的代码插入到文件中?

docker检查-将其输出格式化为表格

javascript - Ionic 2 - LocalStorage 或应用程序中的 Json 存储

android - 可移植 SD 卡 Android

storage - "best"存放脚本的方式是什么?

azure - 如何发布 Azure AD Graph API 或 Microsoft Graph API 中的更新

python - 属性错误: 'function' object has no attribute 'name' when using Click to create Hierarchical command groups