Azure, Cloud, PowerShell

Azure PowerShell: Get Amount of VM Cores per Region

If you need a script which outputs you the overall VMCore amount per region, there you go.
This is a snippet from a RunBook which iterates also through each subscription before, so you would get all amount of used cores per subscription as well as per region.

I took the advantage of using Get-AzureRmVMUsage.
So you can use this two-liner



or a tiny script like this which gives you the result per region


which gives you this