Creating Windows Virtual Machine on Microsoft Azure Portal
Tags: virtualmachine, azure, windows, cloudcomputing
Published: 2023-04-15 08:46:54


**<u>Defining Virtual Machine(VM)</u>**
Virtual Machine is an emulation of a real or physical computer  system  having its own dedicated resources, including CPU, memory, storage, and networking just as physical computer has.
A virtualized environment is produced by the virtual machine software, and this is known as a **hypervisor**, which separates the guest operating systems from the underlying hardware.

VM can be built, removed, or relocated between physical computers without having any effect on the hardware of the physical computer on which it is being operated. This gives hardware resource management more flexibility. It is Infrastructure as a Service(IaaS) offering that allows the User to have total control and able to customise it according to their needs at any point in time. 

The wide usage of Virtual machine in Cloud Computing cannot be overemphasized. This is because they offer a scalable and economical way to host several virtual servers on a single physical computer. It also made accessibility, sharing, backup, and recovery of data  easy.

Creating a VM is easy. Here are simple steps to follow:

**STEP 1**
Log in to Azure Portal with your Azure account or you can create a free trial account if you do not have one.Follow this link to create one https://azure.microsoft.com/en-us/free/

![Azure account](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gnpx10gb2sfrf3dcmy14.png)

After logging in to your Azure account, type Virtual Machine in the Search box and select Virtual Machine


![Search for Virtual Machine](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3boauy2f7d87p3xo9zhu.png)



**STEP 2**
Click on create and select Azure Virtual Machine from the dropdown box


![Select Virtual Machine](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fyl1di8z2e0adgh7zwg8.png)

![Virtual machine selected](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tcznjjh465j9qwsf8nqs.png)



That will bring you to the page below


![Virtual Machine selected](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lojr6y1w2x39ju0qp8go.png)



**STEP 3**
Under the Project details, you will do the following:
(a)Choose your subscription which in this case will be Azure Pass Sponsorship


![Subscription](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t49q2z7pu053t6c7c3sa.png)




(b)Create a Resource group which is a container for keeping similar items together. We will create a Resource group and name it AprilWorkLoad

![Resource Group Created](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6a92zgvxyq8h4pzox5d9.png)


Under the Instance details, you will do these:
(a)Give a name to your Virtual Machine that you are creating. I will name it Yemisicomputer


![Virtual Machine Named](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bxh19krbnqe2cdpsrxsy.png)



(b)Select any Region of your choice where you want to host your VM. Here we will choose EAST US



![Region Chosen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ph3bb2fye2rdicl00p0r.png)


(c)Select the Availability Option. I will select Availability Zones. Under Availability Zones you can select one or more availability zones for your VM, to back up your workload.

![Availability Zone selected](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k85lartcz05qhtl5zt6o.png)

*Leave the Security type at Default i.e. Trusted Launch Virtual Machine as in the picture above

(d)For Image i.e. the Operating System, choose Windows 11 Pro, version 21H2 x64 Gen2

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

*Leave the VM Architecture and Size at Default  

Under Administrator account take the steps below:
(a)Create User Name. We will use Azureuser as our Username
(b)Create a password. Here, we will  use Password123*
**NOTE:** These are the log in details for your Virtual Machine


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



For the Inbound Port rules, RDP(3389) is preselected because we have already chosen to create a Windows 11 Operating System.(RDP means Remote Desktop Protocol)

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


**STEP 4**
Tick Licensing

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


**STEP 5**
Go to Monitoring and disable Diagnostics

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


**STEP 6**
Click on Review and Create to check if there is any error(s)

**STEP 7**
If there is no error, it will show **VALIDATION PASSED** at the top of the page. Then you can go ahead and click on create. 

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


**STEP 8**
You have to wait for the VM to be fully deployed

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

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




**STEP 9**
Click on Go to Resource.This page below will come up
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/27ghcb9rsjb8gzqxi1cq.png)
To connect with your newly created Virtual Machine named YemisiComputer, click on Connect and select RDP.



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


Then Click on download RDP files

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



Open the RDP File downloaded. A window for Remote Desktop Connection will pop up. 

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



Click on Connect and enter your Log in Details i.e. the username and the password.

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



Click OK. Your Virtual Machine Log in mode will come up 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/02hv9jydctyrb08eqzi1.jpg)

Select your Privacy Settings




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

Click on next to proceed to the desktop of your newly created Virtual Machine

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gbrezvyua391ocvkygzk.jpg)
Waoh! Your Windows 11 Virtual Machine is live!!

You can now set up your VM to suit your purpose of creating it