In today’s article I will be brief, but I want to demonstrate a subject that is well up to date: How to create a vm with Windows 11 through Cloud Shell in Azure portal.
Let’s go straight to practice: Log into the Azure portal and hit the Cloud Shell icon located on the right side of the search bar.
If you have not yet used the Cloud Shell, on the first access a Resource Group will be created for the Cloud Shell to use it. In the left corner it is also possible to choose between PowerShell or Bash commands (In case you are familiar with Linux), for this example I will use PowerShell command.
Okay, the next step will be to create a resource group for this virtual machine.
Now run the following commands to create your virtual machine
az vm create –resource-group GetPractical –name VMWindows11 –image windows-11-Preview –public-ip-sku Standard –admin-username azureuser –admin-password “GetPractical@Windows11”
All other parameters like disk, cpu, vnet and etc will be created automatically. If you need to customize, you will also need to customize the command or create via GUI portal.
This process should take a few minutes, but once it is finished you will be able to see in the portal that the VM was created successfully.
It’s important to say that at the time I deployed this vm, Windows 11 was still in preview. If at the time of this post the preview version is no longer available, access the following Microsoft docs :
Finally, run the mstsc /v <Public IP Address> command to access your virtual machine with Windows 11 and the result should be as follows:
And that folks, if you have any doubts, leave them in the comments.