June 2nd, 2016

PowerTip: List all Azure Resource Manager storage accounts by using PowerShell

Doctor Scripto
Scripter

Summary: Use the Azure Resource Manager cmdlets to identify available storage accounts.

Hey, Scripting Guy! Question I’m working a client site, and they’d like me to document the configuration of their Azure Resource Manager environment. I’m in desperate need of a list of the storage accounts. Help me, please?

Hey, Scripting Guy! Answer One cmdlet and you’re done. Just use the Get-AzureRMStorageAccount cmdlet. If you run this, you’ll only get the list, but you can export it to a .csv file named StorageAccounts.csv. Here is an example:

Get-AzureRMStorageAccount | Export-CSV StorageAccounts.csv

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.