CREATING A WINDOWS 11 VIRTUAL MACHINE ON MICROSOFT AZURE PORTAL
Tags: beginners, azure, virtualmachine, tutorial
Published: 2024-06-07 16:46:30

Virtual machines offer flexibility and isolation, making them a great tool for various use cases.

This time, we will be deploying a Windows-based VM—precisely, Windows 11.

With this Windows 11 VM, users can:
- run Windows operating systems on a non-Windows host computer (e.g., macOS, Linux) and access Windows-exclusive features or tools for work or personal projects.
- run legacy Windows applications or games that aren't compatible with older OS versions.
- test Windows software or applications without affecting your main machine.

## **PREREQUISITE**
- Working computer
- Internet connection
- Microsoft Azure account + subscription

## **PROCEDURE**
### **SIGN IN**
After signing in to Azure, you’re presented with a dashboard that looks somewhat like this.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7eb6zd2brdx8fh0jm9g6.png)

### **LOCATE THE VIRTUAL MACHINE SERVICE**
There are several ways to access the Virtual machine service.
- Locate it under recent Azure services as displayed on the dashboard.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/085eu78mxnd3od8acy4d.png)

- Click on the menu icon (3 dashes at the top left corner). A pop-up window appears and locate Virtual machines under the “Favorites” tab or the “All services” tab.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xk7st1y3jtldva029b8p.png)

- Search directly for the resource you would like to locate in the search bar at the top of the screen.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qjq6ae2995rhtt48slb.png)

Whatever route chosen leads to the same destination that looks like this.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o0jeo5tcfcs3ntum1tln.png)

Click on the “Create” button and then click on “Azure virtual machine” on the pop-up menu.
You will be directed to the “Basics” page.

### **SPECIFYING VM DETAILS AND REQUIREMENTS**
The first part of the “Basics” page is the “Project details” section where you are asked to select the subscription and resource group under which you want to create the VM. Don’t forget the straightforward parent-child hierarchy in Azure—Resources are stored in Resource Groups, which are then stored under Subscriptions.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uswsaqaqnxzv1jeo9yl3.png)

PS: In case you haven’t created one previously, creating a resource group just requires you to provide a name in the input box provided after clicking on “Create new” beneath the “Resource group” input box as shown.

The next section is “Instance details” where you can input a VM name of choice, select a region and availability zones as required.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/az9h9pzx8khw5xvip7vr.png)

Under “Images”, we get to specify the particular operating system that we want to use for our VM from the provided list. For this, we need a Windows 11 VM. Therefore, select “Windows 11 Pro, version 22H2 - ×64”.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zank3av7jmpj1lw979bo.png)

Select the size of your virtual machine from the drop-down list or click on "See all sizes" to see other specifications that may suit your requirements.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qc6la7o7gcdw7hjtto1s.png)

Scrolling down, we get to “Administrator account” section where you are required to provide a username and password. 
This will be used to log in to the account so, keep a record or use a password you won’t forget.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kg09pbpv3yhgiu4ynoth.png)

At the “Inbound port rules” section, select “RDP (3389)” from the drop-down list provided when you click on the box for “Select inbound ports”.
Further down, tick the check box under “Licensing”.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5x772znfczldmks469yg.png)

Since this is just a trial, we would be leaving most of the settings as default and skip to only those that need to be attended to personally.
Scroll back to the top and click on “Monitoring”.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/746m8zrqynfnfdjjtqg2.png)

The webpage below loads.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oo8tfdz73xj4hv3m98fb.png)

Disable boot diagnostics.
Next, click on Tags.
_Tags provide metadata or additional information that helps in managing, organizing, and tracking resources within a cloud infrastructure.
Decide tag descriptions and values as shown._
When you’re satisfied, click on the “Review + create” button.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2u6ej4toxccv90flscg.png)

If you get a ribbon depicting validation failure, don’t panic yet. Find the section that has the issue as notified. In this case, “Basics”. Find the error and correct it following the prompts.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r9asnagehhe4hql5wbal.png)

Afterwards, click on the “Review + create” button again. A page as shown should appear showing the pricing for the VM size selected and the details of the VM.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3wu37dse4dw8src0ugf.png)

Click on the “Create” button. There will be a pop-up at the top right showing the status of the deployment.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w7ucxxsnt9xvhgb3czul.png)

You will be directed to a “CreateVm” page which goes through several phases that you might need to be patient for.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5jx4uwbvbvef8tmom5i1.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yc89d7ghv1g39dxqcqkz.png)

Click on “Go to resource”.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vs5h42zijwjxp8tdi4sg.png)

### **CONNECT TO THE VM RESOURCE**
On the resource page, click on “Connect”.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2w2or5adgdh2s9wuttko.png)

After the Connect page loads, click on “Select” as shown.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qqmle3qj4vrirqewm132.png)

You should notice a pop-up on the right hand side of the screen. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qqffeh5nxlrlfqjm4gns.png)

Wait for the box beneath “Public IP address XXX.XX.XXX.XXX” to transition from “Validating” to “Configured”. Then download the RDP file-this will be used to load the Windows VM.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7muzx4bukixnq7umniqq.png)

Load the downloaded file and click on “Connect” on the window that pops up.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g18hzwiqu65phm3ybs0q.png)

Input your username and password in the next window and affirm.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c2yjx97th31p3v66hb1z.png)

_Voilà!_ You should have a Windows 11 VM running on your computer right about now.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zvotfl51adr2comr7aiu.png)

Log in as you will on a physical computer and that’s it.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dmfp6sadn5ali6a7enhz.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kpemw2omix3zqhz9i3gg.png)

Now, you are connected to your Windows 11 Pro regardless of which OS currently runs on your computer.