This script can be used to export all providers and resource type counts to a csv file along with the ARM VM quota information for each active Azure location.
Please update the file path variable to the required location depending on your system set-up.
An out-gridview will be displayed to allow the selection of particular subscriptions you have access to.
The csv file will be overwritten on every execution.
Click here –> Technet Script Center post