Get a list of all Resources in my Azure Subscription (Powershell Preferably) Get a list of all Resources in my Azure Subscription (Powershell Preferably) powershell powershell

Get a list of all Resources in my Azure Subscription (Powershell Preferably)


If you are using the new Resource Manager model (introduced in 2014) you can use the following PowerShell script.

Login-AzureRmAccountGet-AzureRmResource | Export-Csv "c:\Azure Resources.csv"

To use the Resource Manager PowerShell commands you will need the AzureRM PowerShell module (https://docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps).

Install-Module AzureRM

For more information on the difference between Resource Manager and Classic models see, https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-deployment-model.

For users with multiple subscriptions:If you want to output the contents of multiple subscriptions then you will need to call Select-AzureRmSubscription to switch to another subscription before calling Get-AzureRmResource.


I don't think there's just one function (or PS Cmdlet) to fetch all this information. However each of these can be fetched through both Windows Azure Service Management REST API as well as Window Azure PowerShell Cmdlets.

Windows Azure Service Management REST API: http://msdn.microsoft.com/en-us/library/windowsazure/ee460799.aspx. For example, if you want to list storage accounts in your subscription, you would use this: http://msdn.microsoft.com/en-us/library/windowsazure/ee460787.aspx

Windows Azure PowerShell Cmdlets: http://msdn.microsoft.com/en-us/library/jj554330.aspx. Again, if you want to list storage accounts in your subscription, you would use this: http://msdn.microsoft.com/en-us/library/dn205168.aspx.


well,You may update the version of your AzurePowershell and execute this command.

Get-AzureResource

In the output, You may check for "ResourceType".It has the information about the type of resource creatd on azure.