☁️ Step 1: Log into Azure
- Go to https://portal.azure.com
 - Sign in with your Microsoft account
 
🖥️ Step 2: Create a New VM
⚙️ 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)
 
🌐 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.
🔌 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 <path-to-private-key-file> azureuser@ip>
run
paste sudo apt update
paste sudo apt upgrade
paste sudo apt install nginx -y
    
Top comments (0)