This PowerShell script will collect usage information on all of the storage accounts you have access to as well as getting their location and SKU. It will output in a table format
First, you will need to install the ARMClient.exe application. This is what makes the REST calls to the the metrics APIs.
You can download and install from here:https://github.com/projectkudu/ARMClient/releases and extract the Zip
- Download the PowerShell script into the same directory as you extracted the ARMClient.exe
- In a PowerShell console window: Run
.\ARMClient.exe login
to login the metrics APIs - Run
Connect-AzAccount
to login to Azure PowerShell - Run
.\StorageAccountsUsageMetrics.ps1
this will iterate through all of the subscriptions you have access, then get metrics on all of the storage accounts.