-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Auto-Update does not work with Azure DevOps #22352
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botDevOpsInstallationact-platform-engineering-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-requestneeds-team-triageThis issue needs the team to triage.This issue needs the team to triage.
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botDevOpsInstallationact-platform-engineering-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-requestneeds-team-triageThis issue needs the team to triage.This issue needs the team to triage.
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