DEV Community

Cover image for Creating Windows Virtual Machine on Microsoft Azure Portal
Yemisi Oyesainu
Yemisi Oyesainu

Posted on

Creating Windows Virtual Machine on Microsoft Azure Portal

Defining Virtual Machine(VM)
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

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

Search for Virtual Machine

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

Select Virtual Machine

Virtual machine selected

That will bring you to the page below

Virtual Machine selected

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

(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

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

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

Region Chosen

(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

*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

*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

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

STEP 4
Tick Licensing

Image description

STEP 5
Go to Monitoring and disable Diagnostics

Image description

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

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

Image description

Image description

STEP 9
Click on Go to Resource.This page below will come up
Image description
To connect with your newly created Virtual Machine named YemisiComputer, click on Connect and select RDP.

Image description

Then Click on download RDP files

Image description

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

Image description

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

Image description

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

Image description

Select your Privacy Settings

Image description

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

Image description
Waoh! Your Windows 11 Virtual Machine is live!!

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

Top comments (1)

Collapse
 
mojeed-88 profile image
Tijani Mojeed

Wow! Great work