You can follow along here.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-powershell
--please don't forget to Accept as answer if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How can one create a Virtual Machine in Powershell?
You can follow along here.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-powershell
--please don't forget to Accept as answer if the reply is helpful--