我试图设置Azure CLI。第一步是为帐户文件创建存储。我正在使用Developer Program Benefit
订阅。
点击"创建存储"我收到一个错误:
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.
如何解决此问题?
答案 0 :(得分:2)
您收到此错误的原因是,管理存储帐户相关资源和活动的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门户上执行此操作:
More services
,然后选择Subscriptions
Developer Program Benefit
Settings
区域点击Resource providers
Microsoft.Storage
,然后点击Register
答案 1 :(得分:1)