You can disable extension update through configuration. az config set auto-upgrade.prompt=noīy default, all installed extensions will also be updated. To avoid interruption, you can use the following configuration to allow the update to happen automatically without confirmation and only show warnings and errors during the upgrade. The prompt message and output messages during upgrade may interrupt your command result if it is assigned to some variable or in an automated flow. The Azure CLI will check new versions regularly and prompt you to upgrade after any command finishes running once the update is available. If you would like to keep up with the latest version, you can enable auto-upgrade through configuration. Automatic Updateīy default, auto-upgrade for Azure CLI is disabled. When azure-cli is already the latest version, running az upgrade will check and update all installed extensions. If not due to cases like ad-hoc release of a minor bug fix version, you need to wait for the next build of Azure Cloud Shell as az upgrade is not supported in Azure Cloud Shell. If you are running the Azure CLI through Azure Cloud Shell, you are most likely already using the most recent Azure CLI install. It only supports upgrading to the latest version. For more az upgrade options, please refer to the command reference page.Īz upgrade is supported on Windows, macOS and some Linux distros as long as installation is supported. This command will also update all installed extensions by default. Older versions can be updated by reinstalling as described in Install the Azure CLI. The az upgrade command was added in version 2.11.0 and will not work with versions prior to 2.11.0.
0 Comments
Leave a Reply. |