LinuxCommandLibrary

az-upgrade

Update the Azure CLI to the latest version

TLDR

Upgrade Azure CLI

$ az upgrade
copy
Upgrade without prompting
$ az upgrade --yes
copy
Check for updates only
$ az upgrade --dry-run
copy

SYNOPSIS

az upgrade [options]

DESCRIPTION

az upgrade updates the Azure CLI to the latest version. It checks for available updates and installs them, ensuring you have access to the newest features and bug fixes.
The command handles the upgrade process automatically, including dependency updates.

PARAMETERS

-y, --yes

Don't prompt for confirmation
--dry-run
Check for updates without installing
--all
Update all installed components

WORKFLOW

$ # Check for updates
az upgrade --dry-run

# Upgrade with confirmation
az upgrade

# Upgrade without prompts
az upgrade --yes
copy

CAVEATS

Requires sufficient permissions to modify installation directory. May require restart of shell for changes to take effect. Extension updates handled separately. Not available on all installation methods (some package managers handle updates).

HISTORY

az upgrade was added to Azure CLI in 2020 to provide a built-in update mechanism, replacing manual update procedures.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community