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? 回答1: 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