How to Get a List of All Azure Resources

Created by Rijul Sharma, Modified on Fri, 22 Aug at 9:12 PM by Rijul Sharma

 How to Get a List of All Azure Resources

Sometimes you may need to see all the resources in your Azure subscription—for example, when checking billing, cleaning up unused items, or troubleshooting. Azure provides multiple ways to fetch this information.


Option 1: Using the Azure Portal

  1. Sign in to the Azure Portal.

  2. In the left-hand menu, select All Resources.


  3. You will now see a list of all resources across your subscription.

    • You can filter by Resource Group, Region, or Type.

    • Use the Download button (top-right) to export the list as CSV (recommended for most cases) or JSON.


Option 2: Using Azure CLI

If you prefer command line:

  1. Install Azure CLI (if not already installed).

  2. Log in:

    az login
    
  3. List all resources in your subscription:

    az resource list --output table
    
    • --output table shows a clean view.

    • You can also use --output json for detailed JSON format.

Example:

az resource list --query "[].{Name:name, Type:type, Location:location}" --output table

Option 3: Using Azure PowerShell

  1. Install Azure PowerShell.

  2. Log in:

    Connect-AzAccount
    
  3. Run:

    Get-AzResource
    
    • This lists all resources.

    • You can filter further, e.g.:

      Get-AzResource | Select-Object Name, ResourceType, Location
      

Tips

  • If you have multiple subscriptions, make sure you’re in the correct one:

    az account set --subscription "SUBSCRIPTION_NAME"
    
  • For large environments, exporting the list to CSV or JSON makes it easier to filter and analyze.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article