DEV Community

EMMAMAG
EMMAMAG

Posted on

Step-By-Step: How to Create and Connect a Windows 11 Pro Azure Virtual Machine

A Step by step Guide on How to Create and Connect a Windows 11 Pro Azure Virtual Machine

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. 
Enter fullscreen mode Exit fullscreen mode

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 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

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

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

d) Select your security type from the drop-down

Image description

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

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

Administrator Account

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

Image description

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

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

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

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

Image description

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

Image description

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

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

Image description

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

Image description

d) Input your username and password

Image description

e) Click yes to the prompt

Image description

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

Image description

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

b) Click on the Overview.

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

Image description

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

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

Top comments (0)