无法为 Azure Cloud Shell 中的持久帐户文件创建存储 (CLI)
Unable to create storage for persisting account files in Azure Cloud Shell (CLI)
我正在尝试设置 Azure CLI。第一步是为帐户文件创建一个存储空间。我正在使用我的 Developer Program Benefit
订阅。
点击"Create storage"后出现错误:
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>"
要获得订阅name/id,请运行执行以下命令:
azure account list
有关您收到此错误的原因的更多详细信息,请参阅:
如果您更喜欢 GUI,那么您也可以在 Azure 门户上进行操作:
- 在左侧窗格中单击
More services
,然后单击 select Subscriptions
- Select 订阅,在我们的例子中
Developer Program Benefit
- 在
Settings
区域点击Resource providers
- 找到
Microsoft.Storage
并单击 Register
这个post:
中提供了同样的错误和详细的解决方案
How to fix Azure Cloud Shell error "MissingSubscriptionRegistration - The subscription is not registered to use namespace 'Microsoft.Storage'"
我正在尝试设置 Azure CLI。第一步是为帐户文件创建一个存储空间。我正在使用我的 Developer Program Benefit
订阅。
点击"Create storage"后出现错误:
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>"
要获得订阅name/id,请运行执行以下命令:
azure account list
有关您收到此错误的原因的更多详细信息,请参阅:
如果您更喜欢 GUI,那么您也可以在 Azure 门户上进行操作:
- 在左侧窗格中单击
More services
,然后单击 selectSubscriptions
- Select 订阅,在我们的例子中
Developer Program Benefit
- 在
Settings
区域点击Resource providers
- 找到
Microsoft.Storage
并单击Register
这个post:
中提供了同样的错误和详细的解决方案How to fix Azure Cloud Shell error "MissingSubscriptionRegistration - The subscription is not registered to use namespace 'Microsoft.Storage'"