DEV Community

Tracy Chinedu
Tracy Chinedu

Posted on

Creating and Deploying a Windows 11 Virtual Machine on Microsoft Azure

Azure virtual machines (VMs) can be created through the Azure portal. This method provides a browser-based user interface to create VMs and their associated resources. This blog post shows you how to use the Azure portal to deploy a virtual machine (VM) in Azure that runs Windows 11 pro server. To see your VM in action, you can download the RDP file and open on your physical computer.

If you don't have an Azure subscription, create a free account before you begin.

Sign in to Azure
Sign in to the Azure portal.

Create virtual machine

  • Enter virtual machines in the search.

  • Under Services, select Virtual machines.

  • Subscription: Choose the appropriate subscription.

  • Resource Group: Create a new or select an existing resource group.-Tracy

  • Virtual machine name: Give your VM a unique name -MyAzureVM.

  • Region: Choose the data center region of your choice, preferably a region closest to you.

  • Availability options: Select the availability preferences.

  • Choose Windows 11 Pro, version 22H2 - x64 Gen2 (free services eligible) for the Image.

Image description

Setting Up Authentication and Security

  • Under Administrator account, provide a username, such as TracyChinedu and a password. The password must be at least 12 characters long and meet the defined complexity requirements.

  • Under Inbound port rules, choose Allow selected ports and then select RDP (3389)
    Image description

  • Select confirmation of licensing.

Image description

Configuring Disks and Storage

  • Under “Disks,” choose the OS disk type (Standard HDD, Standard SSD, Premium SSD).

  • Adjust the OS disk size according to your needs.

Image description

Network Configuration

  • Choose an existing virtual network and subnet or create new ones.
  • Assign a public IP address if needed.
  • Configure network security groups to control traffic. Image description

Management
This helps to manage roles and acces, for this project we are leaving it as default.
Image description

Monitoring
Enable with managed storage account

Image description

Tags
Tagging in Azure enables you to label your resources in a logical manner, including individual resources, resource groups, and subscriptions.For this project,we are leaving as default.

Image description

Review + Create

  • Review all your configuration settings to ensure accuracy.

  • Validate that your selections align with your intended VM setup.
    Image description

Deploying the Virtual Machine

  • Click the “Create” button to initiate the VM creation process.

  • Azure will begin provisioning your virtual machine based on your configuration.

Image description

Deployment Complete

  • Click on Connect Image description

Download RDP file

  • Click on download RDP file
  • Open file,it will prompt a box
  • Click conect, enter the admin username and password of the VM.

Image description

Virtual machine is ready
Virtual machines can run programs and operating systems, store data, connect to networks, and do other computing functions just like the physical computer.

Image description

Clean Up
After creating and deploying the Vm, since this project is just for practice.We clean up by deleting the resource group to avoid incurring cost.

  • Search for resource group
  • Select Tracy the resource group that was created for this VM

Image description

  • Select all resources that were created
  • Click delete
  • Enter resource group name to confirm deletion Image description

Conclusion

In this guide, I’ve taken you through the step-by-step process of creating a virtual machine in Microsoft Azure. By now, you should have a clear understanding of the various configuration options and settings involved. Virtual machines provide an incredibly flexible way to deploy and manage your applications in the cloud.

Top comments (0)