Is your feature request related to a problem? Please describe.
az --version outputs a lot of text that cannot be parsed easily and in a reliable way in order to determine the CLI version programmatically (e.g. from PowerShell)
Describe the solution you'd like
Either an option to output a machine parse-able output such as e.g. JSON or a switch to output only the version of the CLI as one string
Describe alternatives you've considered
No alternative, hacks like awk/grep/sed are common in the Unix world but are too much effort, too brittle and some of those are not available on Windows where the main automation tool is PowerShell (sometimes the az still has to be used though due to feature gaps of the azure powershell module)
Additional context
I had to check the az version to be greater than v2.0.69 as this is a minim requirement for the azure devops CLI extension.