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:

Login-AzureRmAccount

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.