Steve Fenton

Export a list of all Azure resources to CSV

There’s a handy PowerShell command that you can use to export a list of all Azure resources to a CSV. It is part of the AzureRM PowerShell module, which you can find on GitHub along with installers to get you on the latest version.

Azure login

There’s a two-step process for exporting the data, the first step is to login to Azure:


Get Azure resources

And the second step is to get the resources and pipe them into a CSV in the location of your choice:

Get-AzureRmResource | Export-CSV C:\temp\azure-resources.csv

This gives you a big list of everything you have, including names, types, resource groups, locations.

Written by Steve Fenton on