az-upgrade
Update the Azure CLI to the latest version
TLDR
SYNOPSIS
az upgrade [options]
DESCRIPTION
az upgrade upgrades the Azure CLI and, by default, its installed extensions to the latest available 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. This command is in preview.
PARAMETERS
-y, --yes
Do not prompt for checking release notes.--all {false, true}
Enable updating extensions as well. Default: true.--allow-preview, --allow-preview-extensions {false, true}
Include preview packages for extension installation, if any exist.
WORKFLOW
az upgrade
# Upgrade without the release-notes prompt
az upgrade --yes
# Upgrade only the CLI, skipping extensions
az upgrade --all false
INSTALL
CAVEATS
Requires sufficient permissions to modify the installation directory. May require restarting the shell for changes to take effect. The command works for installations done via the official installers (MSI, Homebrew, apt/yum, etc.); some system package managers handle updates separately and may not be supported. There is no flag to only check for updates without installing.
HISTORY
az upgrade was added to Azure CLI 2.11 in August 2020 to provide a built-in update mechanism, replacing manual update procedures. It remains a preview command.
SEE ALSO
az(1), az-version(1), az-extension(1)