繁体   English   中英

管理Azure资源管理器存储Powershell

[英]manage azure resource manager storage powershell

我面临以下问题

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM