我正面临以下问题
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
我知道我可以在“经典”模式下创建存储帐户。但是后来我无法将其用作使用资源管理器部署的虚拟机映像的源。
但是,通过这种方式,我无法使用Powershell管理帐户并上传Blob。
有什么想法如何管理基于资源管理器的存储帐户?
您可以使用以下新的PowerShell命令来管理基于ARM(Azure资源管理器)的存储帐户。
注意:您需要更新支持此新功能的Azure PowerShell更高版本,例如2015年11月版。另外,在最新版本中不推荐使用Switch-AzureMode命令。
New-AzureRmStorageAccount
Get-AzureRmStorageAccount
Set-AzureRmStorageAccount
Remove-AzureRmStorageAccount
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句