Quick guide fer restorin' ALL yer active azlin sessions with new terminal windows.
The azlin restore command reopens ALL yer running VM sessions in new terminal windows with SSH connections. It automatically detects yer platform (macOS, Windows, WSL, Linux) and launches the appropriate terminal application.
Restore all active sessions with one command:
azlin restoreThis command:
- Lists all running VMs from
azlin list - Detects yer platform automatically
- Launches terminal windows with SSH connections
- Attaches to existing tmux sessions (or creates new ones)
azlin restoreOutput:
Detecting platform: macOS
Found 3 running VMs:
- dev-vm-1 (10.0.1.4)
- test-vm-2 (10.0.1.5)
- prod-vm-3 (10.0.1.6)
Launching terminals...
✓ Launched terminal for dev-vm-1
✓ Launched terminal for test-vm-2
✓ Launched terminal for prod-vm-3
Successfully restored 3 sessions
azlin restore --resource-group my-dev-rgazlin restore --dry-runOutput:
[DRY RUN] Would restore the following sessions:
- dev-vm-1 → Terminal.app with SSH to azureuser@10.0.1.4
- test-vm-2 → Terminal.app with SSH to azureuser@10.0.1.5
- prod-vm-3 → Terminal.app with SSH to azureuser@10.0.1.6
Platform: macOS
Terminal: Terminal.app
Multi-tab: disabled (not supported)
- Default Terminal: Terminal.app
- Command: Opens separate Terminal.app windows
- Session: Attaches to tmux session named "azlin" (or custom)
# macOS automatically uses Terminal.app
azlin restore- Default Terminal: Windows Terminal (wt.exe)
- Command: Opens Windows Terminal tabs
- Session: Connects via SSH from WSL
- Multi-Tab: Opens ALL sessions in one window (configurable)
# WSL automatically finds Windows Terminal
azlin restore
# Disable multi-tab mode
azlin restore --no-multi-tab- Default Terminal: gnome-terminal (fallback to xterm)
- Command: Opens separate terminal windows
- Session: Attaches to tmux session
# Linux auto-detects available terminal
azlin restore# Force specific terminal
azlin restore --terminal windows_terminal
# Available options:
# macos_terminal - macOS Terminal.app
# windows_terminal - Windows Terminal (wt.exe)
# linux_gnome - gnome-terminal
# linux_xterm - xtermazlin restore --config ~/.azlin/custom-config.toml# Open separate windows instead of tabs (Windows Terminal only)
azlin restore --no-multi-tab- 0: All sessions restored successfully
- 1: Partial failure (some sessions failed to launch)
- 2: Total failure (no sessions restored)
# After reboot, restore all development VMs
azlin restore# Reconnect to all VMs after VPN reconnection
azlin restore# Restore only development resource group
azlin restore --resource-group dev-rg
# Check what would be restored first
azlin restore --resource-group prod-rg --dry-run- Platform Detection: Automatically detects macOS, WSL, Windows, or Linux
- VM Discovery: Queries Azure fer running VMs via
azlin list - Config Loading: Loads SSH keys and session names from
~/.azlin/config.toml - Terminal Launch: Opens terminal windows/tabs with SSH connections
- Session Attachment: Connects to existing tmux sessions (or creates new ones)
All SSH connections use:
- Key-based authentication (no passwords)
- StrictHostKeyChecking=no (for dynamic IPs)
- UserKnownHostsFile=/dev/null (prevents known_hosts conflicts)
- SSH keys from
~/.azlin/config.tomlor default~/.ssh/id_rsa
azlin list- Show running VMsazlin connect- Connect to single VMazlin config- View configuration