Get-AzureRmStorageAccount 中的更改 - 缺少 AccountType

Changes in Get-AzureRmStorageAccount - AccountType missing

我注意到 Get-AzureRmStorageAccount 输出中的 AccountType 属性 丢失了。这与 cool/hot 存储的引入相吻合。添加了 属性 Kind,删除了 AccountType

知道如何使用 PowerShell 获取此信息吗?在门户中,此信息仍然可用。在 PowerShell 对象中包含此信息非常重要。

从新的 PS 模块版本 1.4.0 开始,您可以从 "Sku.Name" 为每个帐户获取相同的数据。例如


PS C:\Users\xxxxxx> $Accounts = Get-AzureRmStorageAccount

早些时候:

PS C:\Users\xxxxxx> $Accounts[0].AccountType

标准LRS

现在: PS C:\Users\xxxxxxx> $Accounts[0].Sku.Name

标准LRS


希望这对您有所帮助,

斯里