Objective

Deploy and configure Azure Linux VMs with custom settings.

Tools & Technologies

  • Azure VM
  • Azure CLI
  • cloud-init

Key Commands

az vm create --name MyVM --image UbuntuLTS --admin-username azureuser
az vm open-port --port 22
az vm run-command invoke --command-id RunShellScript

Lab Steps

01
VM Creation

Deploy an Ubuntu VM with SSH key authentication.

02
Disk Configuration

Attach managed data disks and configure mount points.

03
Extensions

Install VM extensions for monitoring and custom scripts.

04
Resize

Change VM size to match workload requirements.

Challenges Encountered

  • VM creation fails if quota is exceeded in region
  • Public IP not assigned by default in some configs

Key Takeaways

  • Use spot VMs for dev/test to reduce costs by up to 90%
  • Always enable Azure Monitor and Boot Diagnostics