HOW TO CREATE A WINDOWS VIRTUAL MACHINE IN AZURE.
Published: 2024-04-07 22:35:36

Azure windows virtual machines (VMs) can be created through the Azure portal.
If you don't have an Azure account, you can create a free account here https://azure.microsoft.com/free/?WT.mc_id=A261C142F

follow the steps below to create your windows 10 virtual machine.
Now that you have created your azure subscription, sign in to the azure portal https://portal.azure.com/ using your Email and Password. 

**_CREATE YOUR VIRTUAL MACHINE_**

1. Enter virtual machines in the search bar.

2. Select "virtual machines" from the search results.

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

3. In the Virtual machines page, click Create, select azure virtual machines. The Create a virtual machine page opens.


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

**_PROJECT DETAILS_**
In this category we have the subscription and resource group.
1. Azure subscription.

In Azure, subscriptions are a unit of management, billing, and scale. With azure subscription you will have access to make use of azure resources and services.

2 Resource group
Resource groups are simply groupings of resources. When you create a resource, you’re required to place it into a resource group. if you don't have an existing resource group you can click create new to create one.

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

 **_INSTANCE DETAILS_**
1. Give your virtual machine a name.

2. Select the region you want your virtual machine to be.

**A** **region** is a geographical area on the planet that contains at least one, but potentially multiple datacenters that are nearby and networked together with a low-latency network.

3. click on the availability option and availability zone.
In azure, a region can consist up to three availability zones.

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

4. select your security type.

5. Select window 10 pro for the image.

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

An image is an operating system. It has all the instructions and settings needed to set up a computer.
6. Select the size of your virtual machine, click all sizes. Leave the other default.     

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

**_ADMINISTRATOR ACCOUNT_**
1. Under Administrator account, provide a username, such as Exceluser and a password. The password must be at least 12 characters long and meet the defined complexity requirements.

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

**Inbound Port Rules**
On the inbound port rules section, select "Allow selected ports" and then select RDP (3389). This port will give you remote access to your physical work desktop computers.

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

Click on "Next: Disks>" to go to the Disk page

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

**Disk**
Azure VMs have one operating system disk and a temporary disk for short-term storage. You can attach additional data disks. The size of the VM determines the type of storage you can use and the number of data disks allowed.

1) On the Disk page click on the OS disk type and select Standard SSD or any disk type of your choice. Leave other as default.

2) Leave the networking, management, monitoring and advanced pages as default. Skip to the Tag page.

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

**Tag**
Tags are name/value pairs that enable you to categorize resources and view consolidated billing by applying the same tag to multiple resources and resource groups.
1) Give your tag a name.

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

2) Next, click on Review+create.

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

3) After the validation run you will see an example summary of the estimated costs.

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

4) After validation runs is successfully passed, select the Create button at the bottom of the page.

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

5) After deployment is complete, select Go to resource.

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

**Connect to Your Windows Virtual Machine.**
Create a remote desktop connection to the virtual machine. These directions tell you how to connect to your Windows 10 operating system.

1) On the overview page of your virtual machine click "Connect".

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

2) Connect with RDP, leave the default settings and click the download RDP file.

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

3) Open the downloaded RDP file and click "connect".

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

4) Input your username, password and click ok as the case may be.

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

5) Click yes to the prompt.

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

Welcome!!! You are connected to your Windows 10 Pro.


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

**Delete resources**
When no longer needed, you can delete the resource group, virtual machine, and all related resources.

1) On the Overview page for the VM, select the Resource link.

2) At the top of the page, select Delete.


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

3) A page will open warning you that you are about to delete resources.

4) Make the necessary choice and click delete.


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


I hope this will guide you in creating your Windows 10 virtual machine. 
**_Regards_**