DEV Community

Cover image for Step-by-Step Guide: Creating a Windows 11 Virtual Machine in Azure Portal
Kehinde Onifade
Kehinde Onifade

Posted on

Step-by-Step Guide: Creating a Windows 11 Virtual Machine in Azure Portal

A Windows 11 virtual machine provides unparalleled flexibility and convenience, offering a safe environment to explore and experiment with the latest features of Windows 11 without altering your primary operating system or hardware. Whether you're a developer testing software compatibility, a student learning new technologies, or a casual user curious about Windows 11's capabilities, a virtual machine offers a risk-free platform to delve into the world of Microsoft's newest operating system. With the ability to easily create, manage, and discard virtual environments, you can freely customize settings, install applications, and troubleshoot issues without fear of irreversible changes. Embrace the power of virtualization and unlock the full potential of Windows 11 on your terms.

Let's dive in and unleash the potential of Windows 11 in the Azure cloud environment!

Please follow the steps below to create your windows 11 virtual machine.

SIGN IN TO AZURE PORTAL
To sign in to the Azure Portal:
Open your web browser and go to portal.azure.com. Enter your Azure account email address or username. Click on the "Next" button. Enter your password associated with your Azure account and then click on the "Sign in" button.
If you have multi-factor authentication enabled, you may be prompted to provide additional verification, such as a code sent to your phone or email.
Once signed in successfully, you'll be redirected to the Azure Portal dashboard, where you can begin managing your Azure resources and deploying your Windows 11 virtual machine.

CREATE YOUR VIRTUAL MACHINE
i.) In the search bar, type "Virtual Machine"

Image description

ii.) From the search results, select "Virtual Machine" from the list of resources shown
iii.) Click on the “Create” button
iv.) Select the virtual machine highlighted

Image description

v.) You will be directed to the “Basic” page

Configure Basic Settings:

  • Select the subscription you want to use.
  • Choose or create a new resource group for your VM.
  • Enter a name for your virtual machine.
  • Choose a region where your VM will be deployed.
  • Select "Windows 11 Pro" as the image.

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

(i.) Subscription: An Azure subscription is a service provided by Microsoft that allows users to access and utilize Azure Cloud. In a simple term, your ownership of Azure resources like owning a plot of land.

(ii.) Resource group: A container for organizing and managing resources within your subscription, like organizing tools and materials for a construction project in one location.

Image description

Instance Details:
(i) Enter a name for your virtual machine.
(ii) Choose a region where your VM will be deployed.
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.
(iii) Choose your availability Zone - Click on the drop-down to select your availability option and availability Zone.

Image description

(iv) In the image section, select Windows11 Pro from the drop-down as the image.
In the context of Azure and virtual machines, an “image” refers to a pre-configured template or snapshot of an operating system (OS) that includes the necessary files, settings, and software installations to deploy a virtual machine (VM) with specific characteristics.
(v) Select the size of your virtual machine from the drop-down or click on "See all sizes". (Choose a VM size based on your requirements) Leave the other information in its default state.

Image description

Administrator Account:
Under the Administrator account, give your account a username and password. Also, confirm the password to ensure they are the same. The password must be at least 12 characters long and meet the defined complexity requirements.

Image description

Inbound Port Rules:
Under Inbound port rules, choose Allow selected ports and then select RDP (3389) and HTTP (80) from the drop-down.

Image description

Click on "Next: Disks>" to direct you to the Disk page
Disk:
On the Disk page, click on the OS disk type, click dropdown and select Standard SSD or any disk type of your choice. Leave the other columns as default.

Image description

Leave the networking, management, monitoring and advanced pages as default and then Skip to the Tag page
Tag:
(i) Give your tag a name
(ii) 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.
(iii) Next, click on Review + create
(iv) Review the summary of your virtual machine configuration and click on the "Create" button to begin the deployment process. Once validation is successful, click on the "Create" button to start provisioning your Windows 11 virtual machine.

Image description

(v) Deployment in progress

Image description

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

Image description

Connect to Your Windows 11 Virtual Machine
Create a remote desktop connection to the virtual machine. Once the VM is provisioned, you can access it using Remote Desktop Protocol (RDP). The steps below tell you how to connect to your Windows 11 operating system.
(i) On the overview page of your virtual machine click "Con

Image description

(ii) Download the RDP file

Image description

(iii) Open the downloaded RDP file and click "connect"

Image description

(iv) Type in your username and password

Image description

(v) Click yes to the prompt

Image description

Congratulations! You have now successfully created a Windows 11 virtual machine in Azure Portal.

Delete resources
When no longer needed, you can delete the resource group, virtual machine, and all related resources. On the search bar, type in the Resource group.

Image description

i) At the top of the page for the resource group, select Delete resource group.
ii) Select Delete resource.
iii) Type the name of the resource group at the right bottom, to confirm deletion.

Image description

Image description

Top comments (1)

Collapse
 
kennyonifade profile image
Kehinde Onifade

By implementing the strategies below, you can maximize the performance, security, efficiency, and reliability of your Windows 11 VM in Azure, providing an optimal experience for your users.

  1. Optimization Tips: Fine-tune resource allocation, disk setups, and network configurations to optimize performance and ensure smooth operation.

  2. Security Best Practices: Strengthen VM security with firewalls, encryption protocols, and robust antivirus solutions like Windows Defender.

  3. Integration with Azure Services: Seamlessly integrate your Windows 11 VM with Azure's ecosystem, leveraging services such as Azure Active Directory, Azure Monitor, and Azure Backup for enhanced functionality and protection.

  4. Automation and Scripting: Simplify deployment and management tasks using automation tools like Azure Resource Manager templates, PowerShell scripts, or Azure CLI commands to increase efficiency and reduce manual errors.

  5. Cost Management: Manage expenses effectively by understanding pricing models, accurately estimating costs, and implementing cost-saving strategies such as optimizing resource usage and utilizing reserved instances.

  6. Scaling and High Availability: Ensure scalability and reliability by leveraging Azure's capabilities to scale VMs based on demand and maintain high availability through features like availability sets or zones.

  7. Troubleshooting Common Issues: Equip yourself with effective troubleshooting techniques to swiftly address common issues such as network connectivity glitches, performance bottlenecks, or application compatibility challenges, ensuring uninterrupted operation.