Azure Spot VM Operations Cheat Sheet

Evictions, priorities, and backups

Last Updated: November 21, 2025

Focus Areas

Focus
Sync state to durable storage ahead of evictions
Use low-priority VMs for retries

Commands & Queries

az vm eviction list
Inspect recent evictions
az vm create --priority Spot
Launch a Spot VM
az vm deallocate
Stop before eviction

Summary

Spot VMs need automation and backups to survive evictions.

💡 Pro Tip: Monitor eviction prediction events and drain workloads gracefully.
← Back to DevOps & Cloud | Browse all categories | View all cheat sheets