DEV Community

Cover image for How To Create A Windows 11 Virtual Machine in Azure
JOSHUA OVIOMO
JOSHUA OVIOMO

Posted on • Updated on

How To Create A Windows 11 Virtual Machine in Azure

Experience the versatility and convenience of a Windows 11 virtual machine, providing the perfect platform to explore and test the latest version of Windows without any permanent alterations to your primary operating system or hardware. Customize your environment to suit your exact needs with a Windows 11 virtual machine.
This article will show you step-by-step how to create and connect Windows 11 Virtual Machine in Azure

Before you start, ensure you have an active Azure subscription, if you don't have one, Click here to create a free account.

Now that you have created your Azure subscription, sign in to the Azure portal using your e-mail and password to get started.

Image description.

  • On your Home Dashboard click on the Virtual Machine icon
    Image description.

  • Click on Create and select the Azure Virtual Machine option

Image description.

  • We will now go through different tabs to configure our virtual machine.

In Basics tab

  • Click on Create new below the Resource group selection field, enter a Name and click OK button.

Image description.
In the Project Details Above, we have the Subscription and Resource Group
a)Subscription
To utilize Azure, a subscription to the platform is required. This subscription grants authorized access to a wide range of Azure products and services and the ability to organize resource groups effectively and manage billing. Additionally, Azure subscriptions offer a free trial and a flexible pay-as-you-go pricing model.

b)Resource Groups
Resource Groups are essential containers that house multiple Azure resources, such as virtual machines, app services, storage accounts, and databases. They offer crucial flexibility for managing the lifecycle of all services in one central location within the Azure cloud. With a resource group, you can confidently deploy, update, and delete these services simultaneously.

Image description
In the Instance Details Above:

  • Enter a name in the Virtual machine name field.

  • Select a region closest to you in the Region field.

Regions refer to the geographic areas where Microsoft Azure has deployed its data centers, from which users can deploy their applications and services. Each region is made up of multiple data centers that are connected by a low-latency network, enabling users to access their resources quickly and reliably

  • Click on the drop-down to select your availability option and availability Zone.

Availability zones are physically separated data centers within an Azure region. Each availability zone encompasses one or more data centers that function independently with their own power, cooling, and networking infrastructure. These zones are interconnected through high-speed, private fiber-optic networks. Therefore, if one zone experiences an outage, the others remain operational. At a minimum, three distinct availability zones are situated kilometers apart.

  • Click the drop-down menu to select your security type

Image description.

  • In the Image field, click the dropdown menu and select Windows 11 Pro, version 22H2 — x64 Gen2.

Image description

In Azure, images are utilized to install an operating system in a new virtual machine. An image may also contain one or more data disks. To view a range of operating systems available in the Marketplace, including the latest versions of Windows Server and various Linux distributions, click on "see all images".

  • In the size field, click the drop-down menu to select your size or click to see all sizes

Image description.

  • In the Administrator account category, set up a unique Username and Password. Keep them secure as we will require them later to log into our virtual machine.

Image description.

  • Under Inbound port rules, choose Allow selected ports in the Public inbound ports and then select RDP (3389) and HTTP (80) from the drop-down menu.

  • Check the Licensing checkbox to Confirm and click the Next:Disk button to go to the next tab.

Image description.

In DiskS tab

  • Leave the OS Disk Size in the image default setting or select a preferred size from the drop-down menu.

Image description.

  • Select Standard SSD or any other disk type of your choice in the OS disk type field. Leave other columns as default.

Image description.

  • Leave networking, management, monitoring, and advanced tabs configurations as default. Skip to the Tag page.

In Tag tab

  • Give your tag a name and Value

Tagging is a way to organize your Azure resources, resource groups, subscriptions, and management groups hierarchy for better filtering, monitoring, or querying a few scenarios. Each tag contains a name and a value pair.

Image description

  • Review the summary of your virtual machine configuration

In the Review + Create tab

Click the Review + Create tab and click on the Create button to begin the deployment process.

Image description

  • After the deployment process is finished, you need to click on the Go to resource option to proceed.

Image description

Connecting to Your Windows Virtual Machine

The following steps will help you create a Remote Desktop connection to your virtual machine and connect to the Windows 11 operating system.

  • Click on the connect dropdown menu from the overview page of your virtual machine, then select Connect.

Image description

  • To proceed, select the Native RDP option and then click on the Download RDP file button.

Image description

  • Open the downloaded RDP file and click Connect

Image description

  • Input your Administrator username and password of your virtual machine, and then click on the ok button.

Image description

  • Click the Yes button on the window prompt

Image description

  • Congratulations! You have successfully connected to your Windows 11 Pro operating system.

Image description

How to disassociate an IP address

One method to reduce cost is disassociating your virtual machine from its IP address.

  • Click on the Public IP address associated with your virtual machine

Image description

  • Click on overview

Image description

  • On the overview page, click on the Dissociate option located at the top of the page

Image description

  • Click the Yes button to confirm the permanent dissociation of your public IP address from your virtual machine

Image description

How to delete resource group and its associated resources (virtual machine, network, database, etc.)

This section will guide you on how to delete any resources that you have created. It is important to delete these resources after completing your work to avoid unnecessary costs and usage of services on the Azure cloud.

Note that deleting the entire resource group will help you save costs as there will be no resources left on the portal

  • Close to disconnect the Virtual Windows 11 Pro operating system.

Image description

  • In Azure portal search bar, type Resource groups
  • From the search results, select Resource groups

Image description

  • Click on the Resource group name (JoshVMGroup) or any other dependent resources
    Image description

  • Click on Delete resource group at the top of the resource group page.

Image description

  • On Delete a resource group page, copy and paste your resource group name 'JoshVMGroup' in the 'Enter the resource group name to confirm deletion' field.

  • Check "Apply force delete for selected virtual machine and virtual machine scale sets" checkbox and click on the Delete button

Image description

  • Click Delete to confirm your action

Image description

I hope this step-by-step tutorial helped you create your Windows 11 virtual machine.
Thank you

Top comments (0)