Hi @Glenn Maxwell ,
maybe this helps: https://devblogs.microsoft.com/scripting/retrieve-azure-resource-manager-virtual-machine-properties-by-using-powershell-part-2/
There are 5 parts in this series. The first part you can skip, this is just the deployment of a VM that will be used in the other parts.
Or maybe this is helpful as well: https://rajanieshkaushikk.com/2021/02/03/retrieve-azure-vm-details-by-using-powershell/
Getting the CPU details: https://community.spiceworks.com/how_to/170332-how-to-get-cpu-information-in-windows-powershell
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten