Get a list of all Resources in my Azure Subscription (Powershell Preferably)
I have an azure subscription and I'm trying to write a powershell script to automatically get a list of all the resources (VMs, Storage Accounts, Databases, etc) that I currently have in my subscription. Is there a way to do this using the azure management REST API or the Azure Cmdlets? If you are using the new Resource Manager model (introduced in 2014) you can use the following PowerShell script. Login-AzureRmAccount Get-AzureRmResource | Export-Csv "c:\Azure Resources.csv" To use the Resource Manager PowerShell commands you will need the AzureRM PowerShell module ( https://docs.microsoft