`az --version` performs an update check
Open
act-platform-engineering-squad
Azure CLI Team
Core
customer-reported
question
Upgrade
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.