我面临以下问题
Switch-AzureMode AzureResourceManager
New-AzureStorageAccount -ResourceGroupName "XYZ" -Name "VmTemplateStorage" -Type "Standard_LRS"
# lists the account
Get-AzureStorageAccount
Set-AzureSubscription -SubscriptionName "ABC" -CurrentStorageAccountName -"VmTemplateStorage"
# now this outputs error saying: Storage account 'VmTemplateStorage' was not found.
Get-AzureStorageContainer
我知道我可以在“经典”模式下创建存储帐户。但是我无法将它用作使用资源管理器部署的 vm 映像的源。
但是,这样,我无法使用 powershell 管理帐户和上传 blob。
任何想法如何管理基于资源管理器的存储帐户?