PowerTip: View properties from a storage account with PowerShell

The Scripting Guys

Dr Scripto

Summary: View and access the SKU from a storage account for future use.

Hey, Scripting Guy! Question I went to work with the New-AzureRMStorageAccount cmdlet but was confused about how to know which name to use for the SKU. Is there an easy way to know which one to use?

Hey, Scripting Guy! Answer There most certainly is! Just create your storage account in the Azure portal first. Then you use the Get-AzureRMStorageAccount cmdlet to access the SKU property.

Here is an example to access ‘hsgstorageaccount’.

(Get-AzureRmStorageAccount -Name hsgstorageaccount -ResourceGroupName HSG-AzureRG).Sku.name

The Doctor

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.