Script Sample - Getting Azure Resource Reports

@20aman    Oct 25, 2018

This post is for two script samples in one. You can fetch reports on Azure resources with the script sample in this post. The two scripts in this post are:

  1. Get-AzureRmAllResourceReport - which fetches the report for all Azure resources in all subscriptions
  2. Get-AzureRmResourceReportForOneResourceGroup - which fetches the report for Azure resources in a particular Resource Group

Script Inputs

All you need to do is to provide the path for the output csv file. In the second script you also need to provide the name of the Resource Group.

The script will iterate all Azure resources and will provide an output csv file. For Azure VM and SQL the script will also provide additional information.

Location of the Script

You can find this script in GitHub at this location: Scripts to Fetch Azure Resource Reports





Comments powered by Disqus