Skip to content

Auto-Update does not work with Azure DevOps #22352

@anthony-gregg

Description

@anthony-gregg

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command

az config set auto-upgrade.enable=yes
az config set auto-upgrade.prompt=no=yes

Describe the bug

When there is a new version to update to for Azure CLI, it will not auto-update and when Azure DevOps kicks off a pipeline, it will not complete the Azure CLI step in the pipeline until the Update has taken place, which it never will. It just sits there waiting for user interactive input, which never comes. Therefore the pipeline appears to be stuck, forever, waiting.

To Reproduce

Set Config on Azure CLI to auto update and prompt is "no".
Wait until a new version is available on Azure CLI. Once it is, kick off a Pipeline to the build server and watch it never complete.

Expected behavior

The auto-update should happen, when the pipeline is kicked off as I believe the auto update only happens once a pipeline is triggered.

Environment summary

CLI Version - this occurs with the latest version of Azure CLI. This is happening on Windows Server 2016 and 2019. This server is a Self Hosted Build Server for Azure DevOps.

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions