☁️ Step 1: Log into Azure

  1. Go to https://portal.azure.com
  2. Sign in with your Microsoft account Azure Portal

🖥️ Step 2: Create a New VM

Azure Home Page


⚙️ Step 3: Configure the VM

Fill out the basics:

  • Click "Create a resource"
  • Virtual machine name: my-linux-vm
  • Region: Us East Us
  • Image: Ubuntu 22.04 LTS
  • Size: Standard B1s (free tier)
  • Authentication: Password or SSH (we’ll secure it in Part 3) Azure portal

Azure portal

🌐 Step 4: Networking

Under Inbound Port Rules, allow:

  • SSH (port 22)
  • HTTP (port 80) – needed for NGINX

✅ Step 5: Review and Create

Click "Review + create", then "Create".

Deployment will take a few minutes.

Azure Portal

Azure Portal
After resources click connect

Azure Portal
Azure Portal

🔌 Step 6: Connect to Your VM

Once created, go to Overview and copy the public IP address.

Use an SSH client (like Terminal or PowerShell):

bash
ssh -i  azureuser@ip>
run
paste sudo apt update
paste sudo apt upgrade
paste sudo apt install nginx -y