Step-By-Step: How to Create and Connect a Windows 11 Pro Azure Virtual Machine
Tags: webdev, beginners, programming, cloudcomputing
Published: 2024-04-06 16:15:44

**<u>A Step by step Guide on How to Create and Connect a Windows 11 Pro Azure Virtual Machine</u>**

A Virtual Machine (VM) is a computer resource that uses software instead of a physical computer to run programs and deploy apps. One or more virtual “guest” machines run on a physical “host” machine.  Each virtual machine runs its own operating system and functions separately from the other VMs, even when they are all running on the same host. This means that, for example, a virtual MacOS virtual machine can run on a physical PC.
The virtual machine runs as a process in an application window, similar to any other application, on the operating system of the physical machine. Key files that make up a virtual machine include a log file, NVRAM setting file, virtual disk file and configuration file. 
Virtual machines are easy to manage and maintain, and they offer several advantages over physical machines:  
 
    VMs can run multiple operating system environments on a single physical computer, saving physical space, time and management costs. 
    Virtual machines support legacy applications, reducing the cost of migrating to a new operating system. For example, a Linux virtual machine running a distribution of Linux as the guest operating system can exist on a host server that is running a non-Linux operating system, such as Windows. 


This step-by-step guide outlines how to create a Windows 11 virtual machine (VM)

**SIGN IN TO AZURE PORTAL**
As a prerequisite, If you don't have an Azure subscription, visit: [AZURE WEB PORTAL](https://portal.azure.com/) and log in to create a free account before we get started. Now that you have created your Azure subscription, sign in to the Azure portal using your mail and password to get started.

**CREATE YOUR VIRTUAL MACHINE**
a. In the search bar, type "Virtual Machine"

b. From the search results, select "Virtual Machine" from the list of resources shown

c. Click on the "Create" button

d.) Select the virtual machine highlighted


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

e)You will be directed to the "Basics" page.


**Project Details**

In the project details category, we have the subscription and resource group;

a) Subscription

An Azure subscription in simple terms means a membership or access pass to use Microsoft Azure. It's similar to subscribing to a service or signing up for a subscription plan. With an Azure subscription, individuals or organizations can use and benefit from the various services and resources provided by Azure at a cost depending on your type of subscription. However, it also offers free and trial options, giving you a chance to explore and experiment with Azure before committing to a paid subscription.

b)Resource Group

A resource group in Azure is like a container or folder that helps you organize and manage the different resources such as virtual machines and databases that you use in the Azure cloud.

Imagine you have a room with different items scattered all over the place. It becomes challenging to find what you need when everything is upside down. In this scenario, the room represents your Azure cloud environment, and the resources are the items in the room. Now, imagine you decide to tidy up and arrange your items where they are initially meant to be. Each compartment keeps related items organized and makes it easier to find what you need.



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

**Instance Details**

a) Give your virtual machine a name

b) In the region section, select the location you want your virtual machine to be.

A region refers to a specific geographical location with data centers that host infrastructure and services. Each region operates independently and is designed to be self-contained, with its own set of resources and infrastructure.

c) Next, click on the drop-down to select your availability option and availability Zone.

In Azure, a region can consist of three availability zones, known as Zone 1, Zone 2 and Zone 3. Each zone has one or more data centers that are kilometers apart from each other.

These data centers are equipped with independent power, networking, and cooling infrastructure to minimize the impact of failures and disruptions. What physically Links these data centers together is Fibre Optic Cable. Fiber optic technology allows for high-speed data transmission over long distances while maintaining low latency and high bandwidth capabilities.


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

d) Select your security type from the drop-down


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

e) In the image section, select Window 11 pro from the drop-down

_An image is an operating system. It's like a blueprint for creating virtual machines or computer systems. It has all the instructions and settings needed to set up a computer with a specific operating system and software._


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

f) Select the size of your virtual machine from the drop-down or click on "See all sizes". Leave the other information in its default state.


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

**Administrator Account**

a) Give your account a username and password. Also, confirm the password to ensure it aligns.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y7hh0jgq043exetxekxz.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.

Click on "Next: Disks>" to direct you to the Disk page



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

**Disk**

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

b) 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/m4ig5kdj5gdr7u8xjkzk.png)

**Tag**

a) Give your tag a name

Tags are a way to label and organize resources in cloud computing environments. The purpose of tags is to provide metadata or additional information that helps in managing, organizing, and tracking resources within a cloud infrastructure.

b) Next, click on Review+create


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

c) Review the summary of your virtual machine configuration and click on the "Create" button to begin the deployment process.


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

d) Once the deployment is complete, click on "Go to resource".


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/npz0ic9584blvklviou0.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 11 operating system.

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

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

b) Connect with RDP, leave the default settings and click the download RDP file to your file


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

c) Open the downloaded RDP file and click "connect"


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

d) Input your username and password


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

e) Click yes to the prompt


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

Welcome!! You are connected to your Virtual Windows 11 Pro.

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


**How To Disassociate IP Address**

Situations may arise where you need to save cost running your virtual machine.One way to optimise cost is to disassociate your IP address from your virtual machine.

a) Click on your IP address

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

b) Click on the Overview.

c) On the overview page, click on dissociate at the top-right of the page.


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

d) It will ask you to confirm dissociation, click "Yes'. Once you click yes, your IP address will be dissociated from your Virtual Machine.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dj9rnseu2bzvmi3b8m2s.png)

I hope this step-by-step tutorial helped you create your Windows 11 virtual machine.
Drop your questions in the comment section