【发布时间】:2017-03-28 15:35:22
【问题描述】:
请帮助我获取用于 ARM 设置的存储帐户的帐户类型(即 LRS 或 GRS 或 ZRS )。
我已经运行 Get-Azurermstorageaccount ,但它没有公开任何方法来获得它。但是,我可以使用命令 Get-Azurestorageaccount 在 ASM 设置中获取帐户类型
【问题讨论】:
标签: powershell azure azure-powershell
请帮助我获取用于 ARM 设置的存储帐户的帐户类型(即 LRS 或 GRS 或 ZRS )。
我已经运行 Get-Azurermstorageaccount ,但它没有公开任何方法来获得它。但是,我可以使用命令 Get-Azurestorageaccount 在 ASM 设置中获取帐户类型
【问题讨论】:
标签: powershell azure azure-powershell
请尝试使用此命令:
PS C:\> (Get-AzureRmStorageAccount -ResourceGroupName back -Name "jasondisk321").Sku
Name Tier
---- ----
StandardLRS Standard
【讨论】:
(Get-AzureRmStorageAccount -ResourceGroupName back -Name "jasondisk321").sku.Name 将得到standardLRS