LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

az-upgrade

Update the Azure CLI to the latest version

TLDR

Upgrade Azure CLI and installed extensions
$ az upgrade
copy
Upgrade without prompting to review release notes
$ az upgrade --yes
copy
Upgrade the CLI only, leaving extensions untouched
$ az upgrade --all false
copy
Include preview extension packages when upgrading
$ az upgrade --allow-preview true
copy

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

$ # Upgrade CLI and extensions with confirmation
az upgrade

# Upgrade without the release-notes prompt
az upgrade --yes

# Upgrade only the CLI, skipping extensions
az upgrade --all false
copy

INSTALL

sudo dnf install azure-cli
copy
sudo pacman -S azure-cli
copy
sudo zypper install azure-cli
copy
brew install azure-cli
copy
nix profile install nixpkgs#azure-cli
copy

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

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid