DEV Community

Cover image for Getting Started with Azure: Create and Configure a Windows 10 Virtual Machine
Samuel Ojo
Samuel Ojo

Posted on

Getting Started with Azure: Create and Configure a Windows 10 Virtual Machine

Introduction
Creating a Windows 10 Virtual Machine (VM) in Microsoft Azure allows you to experience a modern desktop environment in the cloud. This is ideal for developers, testers, and IT professionals who need a secure, scalable, and easily accessible Windows environment without installing it locally. In this lab, you’ll learn how to create a Windows 10 VM, connect to it using Remote Desktop, and install IIS to host a simple web page.

Key Terms
Virtual Machine (VM): A software-based computer that runs an operating system and applications like a physical computer, but is hosted on a cloud or virtualization platform.

Azure: Microsoft’s cloud computing platform offering services like virtual machines, storage, networking, and more.

RDP (Remote Desktop Protocol): A protocol that allows you to connect and control a remote computer over a network.

IIS (Internet Information Services): A web server developed by Microsoft for hosting websites and web applications.

Availability Zone: A physically separate location within an Azure region that provides high availability and fault tolerance.

Create virtual machine
1.Navigate to https://portal.azure.com.- Sign in with your Azure account credentials.
Enter virtual machines in the search box.

2.Under Services, select Virtual machines.

3.In the Basics tab, under Project details, make sure the correct subscription is selected and then choose or Create new resource group. Mine is winserver10rg.

Create new resource group

4.Under Instance details, enter winserver10Vm for the Virtual machine name, and choose choose Windows 10 Enterprise, version 22H2 - x64 Gen2 for the Image. The default size and pricing is only shown as an example. Size availability and pricing are dependent on your region and subscription.

Windows 10 Enterprise

5.Under Administrator account, select password.
6.In Username enter azureuser.
7.Enter password and confirm password.

Administrator account

8.Under Inbound port rules > Public inbound ports, choose Allow selected ports and then select HTTP (80) and RFDP(3389) from the drop-down.

Inbound port rules > Public inbound ports<br>

9.Navigate to Monitoring tab > Diagnostics > select Disable.

Monitoring Diagnostics snd select Disable

Navigate to Tags tab. Create Tag (Name **and **value). Then select the Review + create button at the bottom of the page

Create Tag

10.On the Create a virtual machine page, you can see the details about the VM you are about to create. When you are ready, select Create.

Create a virtual machine

11.When the deployment is finished, select Go to resource

Go to resource

12.On the page for your new VM, select the public IP address and copy it to your clipboard.

public IP

13.Increase the Idle timeout (minutes) to 30.

Default Idle timeout

Increase Idle timeout to 30

End of step 1

Step 2: RDP into the VM
Once the VM is deployed, follow these steps to connect:

🔹 On Windows:

  • Open Remote Desktop Connection (RDP)
  • Enter the public IP address of the VM
  • Click Connect

Connect to Vm

Download RDP file

Connect RDP

  • Enter your Admin username & password

Admin username & password

  • Click OK

🔹 On macOS/Linux:
Use an RDP client like Microsoft Remote Desktop.

Step 3: Open PowerShell as Administrator

  • Once connected to the VM, open PowerShell:

  • Click the Start menu

PowerShell

  • Type PowerShell
  • Right-click Windows PowerShell and select Run as administrator

4: Install IIS (Web Server)
Run the following command to install IIS and its management tools:

Install-WindowsFeature -name Web-Server -IncludeManagementTools
Enter fullscreen mode Exit fullscreen mode

Install IIS Web Server

Installing IIS Web Server

Installed IIS Web Server

Step 5: Verify IIS Installation
After installation, verify that IIS is running:

📌 Method 1: Public IP Address
Copy your VM’s public IP address
Open a browser and enter:
http://your_vm_ip in this lab, mine is:
http://51.141.93.231

Verify IIS Installation

📌 Method 2: Localhost
Open a web browser
Go to http://localhost
You should see the default IIS welcome page

If IIS is installed correctly, you should see the IIS default page.

Conclusion
You’ve successfully created and configured a Windows 10 VM in Azure, connected via RDP, and installed IIS to serve a web page. This setup is perfect for testing desktop applications, building development environments, or exploring Windows 10 features in a secure cloud environment.

Next Steps:
Automate VM creation using Azure CLI or ARM templates.
Explore Azure Bastion for secure browser-based RDP.
Configure NSG rules for advanced security.

Thanks for reading, see you in the next one

Top comments (0)