[英]Unable to create storage for persisting account files in Azure Cloud Shell (CLI)
我正在嘗試設置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.
如何解決這個問題?
出現此錯誤的原因是,用於管理與存儲帳戶相關的資源和活動的Microsoft.Storage
資源提供程序未在您的Azure訂閱中注冊。
要解決此問題,請運行以下命令:
azure provider register --namespace "Microsoft.Storage" --subscription "<your subscription name or id>"
要獲取訂閱名稱/ ID,請運行以下命令:
azure account list
有關為什么出現此錯誤的更多詳細信息,請參見: 未注冊訂閱以使用命名空間'Microsoft.DataFactory錯誤
如果您喜歡GUI,則也可以在Azure門戶上進行操作:
More services
,然后選擇“ Subscriptions
Developer Program Benefit
Settings
區域中單擊Resource providers
Microsoft.Storage
,然后單擊Register
這篇文章提供了相同的錯誤以及詳細的解決方案:
如何修復Azure Cloud Shell錯誤“ MissingSubscriptionRegistration-未注冊訂閱以使用名稱空間'Microsoft.Storage'”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.