How to get count of Azure VM cores per resource group Mikhail | August 19, 2022 Just a sample PowerShell code to get count of all Azure VM cores per resource group: View the code on Gist. Azure – Get number of cores for all VMs within a specific resource group