VM Management Commands¶
Core VM lifecycle and management operations.
Overview¶
VM commands handle the complete lifecycle of Azure VMs - from provisioning to deletion, including configuration, monitoring, and maintenance.
Available Commands¶
Lifecycle Management¶
- azlin new - Provision new Azure VM with development tools
- azlin clone - Clone VM with home directory contents
- azlin start - Start a stopped or deallocated VM
- azlin stop - Stop/deallocate VM to save costs
- azlin kill - Delete VM and all associated resources
- azlin destroy - Delete VM with dry-run and resource group options
Connection & Access¶
- azlin connect - SSH to VM with tmux session management
- azlin code - Launch VS Code with Remote-SSH
Information & Status¶
- azlin list - List VMs in resource group
- azlin status - Show detailed status of VMs
- azlin session - Set or view session name for a VM
Configuration¶
- azlin tag - Manage Azure VM tags
- azlin update - Update all development tools on VM
- azlin os-update - Update OS packages
Quick Start¶
Create and Connect¶
# Create VM
azlin new --name my-dev-vm
# Connect with SSH
azlin connect my-dev-vm
# Or open in VS Code
azlin code my-dev-vm
List and Manage¶
# List all VMs
azlin list
# Show detailed status
azlin status
# Stop VM to save costs
azlin stop my-dev-vm
Clone VMs¶
# Clone for team member
azlin clone dev-base --session-prefix alice
# Clone multiple
azlin clone template --num-replicas 3 --session-prefix worker
Related Topics¶
- Batch Operations - Multi-VM operations
- Snapshot Management - VM backups
- Storage Management - Shared storage