Skip to content

azlin vm update-tools

Update development tools on a VM

Description

The azlin vm update-tools command refreshes the development toolchains that were installed during VM provisioning. It upgrades system packages, the Rust toolchain, and the Python and Node.js package managers.

Note: This updates development tools, NOT operating system packages. For OS updates, use azlin os-update.

Usage

azlin vm update-tools [OPTIONS] VM_IDENTIFIER

Arguments

Argument Description
VM_IDENTIFIER VM name, session name, or IP address (required)

Options

Option Type Description
--resource-group, --rg TEXT Name Azure resource group
--config PATH Path Config file path
--timeout INTEGER Seconds Timeout per update in seconds (default: 300)
-h, --help Flag Show command help and exit

Examples

Update by VM Name

azlin vm update-tools my-vm

Update by Session Name

azlin vm update-tools my-project

Update by IP Address

azlin vm update-tools 20.1.2.3

Update with Custom Timeout

# Allow 10 minutes per tool update
azlin vm update-tools my-vm --timeout 600

Update with Explicit Resource Group

azlin vm update-tools my-vm --rg my-resource-group

What Gets Updated

  • System packages: apt-get update && apt-get upgrade
  • Rust: rustup update (rustc, cargo)
  • Python: pip install --upgrade pip
  • Node.js: npm install -g npm

Troubleshooting

Update Timeout

Symptoms: Update times out

Solutions:

# Increase timeout
azlin vm update-tools my-vm --timeout 900

# Or update manually via SSH
azlin connect my-vm
npm update -g
rustup update
pip install --upgrade pip uv

Specific Tool Fails

Symptoms: One tool fails to update

Solutions:

# SSH to VM and update manually
azlin connect my-vm

# Update specific tools
npm update -g  # Node.js
rustup update  # Rust
pip install --upgrade pip uv  # Python

Source Code

See Also