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
Describe the bug
When running
az --versionan update check is performed against az-cli and the extensions.Azure Pipelines' AzureCLI task runs
az --versionto 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 --versionErrors
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