May 26th, 2016

PowerTip: View properties from a storage account with PowerShell

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.