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

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon