DEV Community

Cover image for How to Create a Windows 11 Virtual Machine in Microsoft Azure
Kosisochukwu Ugochukwu
Kosisochukwu Ugochukwu

Posted on

How to Create a Windows 11 Virtual Machine in Microsoft Azure

Introduction
Creating a Windows 11 virtual machine (VM) in Microsoft Azure provides customers with a scalable and secure environment for development, testing, and operational use. You may deploy a Windows 11 virtual machine in Azure by following the instructions in this article.

Note
Before you begin, ensure that you have the following:

  • An active Microsoft Azure subscription.
  • Proper permissions (Administrator or Contributor role in Azure).

Step 1: Log in to the Azure Portal

  • Navigate to the Microsoft Azure Portal.

  • Sign in with your Azure account credentials.

Azure account

Step 2: Create a Virtual Machine

  • In the Azure Portal, click on Create a resource group.

resource group

  • Name the resource group and click on review and create

name

  • Select "Home" search Virtual Machine and then click on Virtual Machine

Virtual Machinen

  • Select create

create

Under the Basics tab, configure the following settings:

  • Subscription: Choose your active Azure subscription.

  • Resource Group: Select an existing resource group or create a new one.

  • Virtual machine name: Enter a unique name for your VM.

unique name

  • Region: Choose a region that supports Windows 11 VMs.

  • Choose Availability Zone

  • Image: Click Browse all images and select Windows 11 Pro.

Browse all images

  • Size: Choose an appropriate VM size based on your workload requirements.

VM size

Step 3: Configure Administrator Account

  • Under the Administrator account section, choose Username and Password.

  • Select inbound ports and click on HTTP

Select inbound ports

Ensure that you remember these credentials, as they will be used to access the VM.

Step 4: Configure Networking

  • Under the Networking tab, choose Virtual network (VNet).

  • Select the default Subnet to allocate the VM.

  • Set public IP to enabled if remote access via RDP is required.

  • Under Inbound port rules, allow RDP (3389) for remote desktop access.

Networking tab

Inbound port rules

Step 5: Configure Additional Settings

  • Enable Auto-shutdown if required to save costs when not in use.

  • Configure Backup settings if needed.

Enable Auto-shutdown

Step 6: Configure Monitoring

  • For practise purpose on Boot diagnostics, click disabled

Boot diagnostics

  • It is generally recommended to keep Boot Diagnostics enabled, especially for troubleshooting startup issues.

  • However, if you are confident that you don’t need boot logs, you can disable it to reduce unnecessary storage usage.

Step 7: Configure Tag

  • Choose a name and value for the VM

Configure Tag

Step 8: Review and Deploy

  • Click Review + Create to validate the configuration.

Click Review + create

If all settings are correct, click Create to deploy the VM.

deploy the VM

The deployment process may take a few minutes. Once complete, navigate to the VM under Virtual Machines.

Step 9: Connect to the VM

  • on the overview of Virtual machine, under networking, click on the ip to increase the idle timeout of the VM. Then click save

overview

idle timeout

  • Open the newly created VM in the Azure portal.

  • Click on Connect and select RDP.

select RDP

  • Download the RDP file and open it to connect.

open it to connect

  • Enter the Administrator username and password set during the VM creation process.

password

  • Windows 11 pro created successfully Windows 11 pro

Conclusion

Congratulations! You have successfully created a Windows 11 virtual machine in Microsoft Azure. You can now install applications, configure settings, and manage the VM as needed. Be sure to monitor usage to optimize cost and performance.

Top comments (0)