Creating Windows 11 Virtual Machine in Azure
Tags: azure
Published: 2024-04-08 11:13:17

A virtual machine allows you to safely run any software you are reluctant to run on your main computer or make any risky changes you wish to carry out. Every change and program you install is encapsulated within the virtual machine and doesn't spread out onto your main PC.

**How do you create a Windows 11 virtual machine (VM) in Azure?**

_Let's take it step by step!_

**Step 1:** You must have an Azure account. You can sign up for a free account to get started. Now login to your Azure account using your email and password. 

I strongly recommend using your laptop which is what I will be using to guide you through the steps.

**Step 2:** Create a resource (In Azure, a resource is a manageable item that is available through Azure. Examples of Azure resources include Virtual machines, Storage accounts, Web apps, Databases, Virtual networks, Resource groups, Subscriptions, etc.)


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

Step 3: Click on create under virtual machine

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

Step 4: Give your resource group a name (this is creating a resource group)


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

And then give your virtual machine a name

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

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

Step 5: Choose a region (A Region is a Specific geographical location to host your applications e.g. Windows 11). You can choose the recommended region.

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

Step 6: Choose an availability zone and then select a particular zone although multiple zones can be selected, I recommend one for now. (_In Azure, an availability zone is a physically separate location within an Azure region that is designed to be highly resilient to power outages, network failures, and natural disasters. Each availability zone is made up of one or more data centers that have independent power, cooling, and networking. This allows for the creation of highly available and fault-tolerant applications and services._)


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


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


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

Step 7: Choose a security type. You can use the default one.

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

Step 8: Click on image which is where you chose the operating system in this case windows 11.

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

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


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

Next, click on size. It will bring out various range of sizes to choose from. Pick the one that meets your specification and it's cost-effective.


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


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

Step 9: Fill in your administrator account information, that is, your username and password (12 to 13 characters)


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

Next, select an inbound port. Multiple ones can be selected but stick with the default for now.


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


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

Next, click on disk (Recommend default setting)

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

Step 10: Click on management (Recommend default setting)


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

Step 11: Click on monitoring (Recommend default setting)

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

Step 12: Click on advance (Recommend default setting)


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

Next, click on Tags (Recommend default setting)

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

Step 13: Click on review and create ( and then click on create)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e3vghw5sfp6dso9ikaah.jpg)
**Wait till it finishes deploying…**

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

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

_Once the deployment is complete…_

Step 14: Click on go to resource

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

Step 15: Click on connect


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


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

Step 16: Click on download RDP file


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

And then open the downloaded file
Step 17: Click on connect


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

Step 17: Enter the password you created during the administrator account information.


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

Then click on yes… _Almost there!_

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

Click on next and then accept


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

**_Finally…. Your Windows 11 has been created virtually and ready for use!_**


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

It is always good to clean up your resources when no longer in use to avoid charges. To do that:
i) Goto Home and click Resource Group


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

ii) Click on the resource you want to delete
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ba43500645s705sit2jg.png)

iii) Click on delete resource group


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

iv) Copy the resource name, copy it in the box and click delete.


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

If you have found this helpful, please comment and share. 
Thanks for reading!