Back to the blog
Azure-Fundamentals Lab

Deploy and Configure Virtual Machines in Azure

Service Area: Compute

Lab Objective:

Learn how to deploy and configure an Azure Virtual Machine (VM) using Azure Portal.


Example Scenario:

Deploy a Windows Server 2022 Virtual Machine named WebServer-VM in the East US region, with RDP access, and configure it to display a custom welcome page.


Lab Steps:

Step 1: Login to Azure Portal


Step 2: Create a Virtual Machine

  • Search → Virtual Machines → Click Create → Azure Virtual Machine

Basic Tab:

FieldValue
SubscriptionYour Subscription
Resource GroupCreate new → Lab-RG
Virtual Machine NameWebServer-VM
RegionEast US
ImageWindows Server 2022
SizeStandard B2s (or recommended)
Usernameazureuser
PasswordYour password

Step 3: Configure Inbound Ports

  • Select Allow selected ports
  • Select RDP (3389) → To allow remote access.

Step 4: Networking

  • Accept default Virtual Network & Subnet
  • Public IP: Enable
  • NIC Network Security Group: Basic
  • Inbound ports: RDP enabled

Step 5: Review + Create

  • Review configuration → Click Create

Step 6: Connect to VM

  • Go to Virtual Machines → Select WebServer-VM
  • Click Connect → RDP → Download RDP File
  • Login using credentials set earlier.

Step 7: Configure the VM (Optional)

  • Open PowerShell in the VM
  • Run below commands to install IIS Web Server:
powershellCopyEditInstall-WindowsFeature -name Web-Server -IncludeManagementTools
  • Create a custom homepage:
powershellCopyEditecho "Welcome to WebServer-VM!" > C:\inetpub\wwwroot\index.html

Step 8: Test Web Page

  • In browser, enter VM Public IP
  • Example: http://<Public_IP>
  • You should see:
    Welcome to WebServer-VM!

Step 9: Clean Up Resources

  • Delete the resource group to avoid charges:
    Resource Groups → Lab-RG → Delete.

Outcome:

Successfully deployed and configured a Virtual Machine in Azure with IIS Web Server and custom webpage.

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *

Good things start with a conversation

Let's learn.
Let's build.
Let's grow.

Have a speaking opportunity, a workshop in mind, or an idea to explore together? Let's start a conversation.

For a Stronger Tomorrow.