-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az --version
performs an update check
#27437
Comments
Thank you for opening this issue, we will look into it. |
According to https://learn.microsoft.com/en-us/cli/azure/update-azure-cli#automatic-update, it should be We do have |
Yeah, have a way to disable network access for these commands. Either with an extra parameter to Ideally It looks like |
|
I was looking for a way to set the default config settings, and I tried it on the console. Lo and behold it downloaded the extension and ran. I supplied a PR for it to add a few more settings. |
This is another topic we are still internally investigating. Not only Azure DevOps, we are aiming to find a unified way to detect the running environment - Azure DevOps, Azure Cloud Shell, GitHub Actions, etc. |
|
Yeah, I figured as much. The experimental nature at least. But it does seem to reccomend certain settings in an automated environment. As you mentioned above I ended up doing a search through the codebase instead. But it lead to some useful insights! I've been digging into the performance of
If these each shave off a couple of seconds, over the number of invocations on the hosted runners worldwide it would save a couple of trees and a bunch of water. Ideally
And would allow:
|
Describe the bug
When running
az --version
an update check is performed against az-cli and the extensions.Azure Pipelines' AzureCLI task runs
az --version
to capture the version details in the logs.It would save quite a bit of CPU if az-cli would not perform an update check in a CI/CD scenario.
There already is an core.auto-upgrade=false option, would it not make sense to piggy back on that or to add another config setting to turn off update checking.
Related command
az --version
Errors
N/a
Issue script & Debug output
N/a
Expected behavior
No update check is performed in CI.
Environment Summary
2.52.0
Additional context
No response
The text was updated successfully, but these errors were encountered: