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
- URL: https://portal.azure.com
- Sign in with your Azure credentials.
Step 2: Create a Virtual Machine
- Search → Virtual Machines → Click Create → Azure Virtual Machine
Basic Tab:
Field | Value |
---|---|
Subscription | Your Subscription |
Resource Group | Create new → Lab-RG |
Virtual Machine Name | WebServer-VM |
Region | East US |
Image | Windows Server 2022 |
Size | Standard B2s (or recommended) |
Username | azureuser |
Password | Your 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.
Leave a Reply