Back
So, basically VM size is pulled by hardware profile. You can try with this:
$VM.HardwareProfile.VMSize
I hope this will work.
Want to become an Azure Expert? join Azure Training now!!
31k questions
32.8k answers
501 comments
693 users