Azure VM Configuration
Objective
Deploy and configure Azure Linux VMs with custom settings.
Tools & Technologies
Azure VMAzure CLIcloud-init
Key Commands
az vm create --name MyVM --image UbuntuLTS --admin-username azureuseraz vm open-port --port 22az vm run-command invoke --command-id RunShellScriptLab 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