Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Azure by (13.1k points)
I was trying to retrieve the VM name and VM size using a PowerShell script, but it is returning only the VM name but not the size. Any idea how I can able to do that?

1 Answer

0 votes
by (26.7k points)

So, basically VM size is pulled by hardware profile. You can try with this:


I hope this will work.

Want to become  an Azure Expert? join Azure Training now!!

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94k users

Browse Categories