-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Azure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamCoreCLI core infrastructureCLI core infrastructureOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.This label is used to track how many GitHub issues we have resolved for OKR purpose.Upgradeaz upgradeaz upgradefeature-requestneeds-author-feedbackMore information is needed from author to address the issue.More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.There has been no recent activity on this issue.
Description
Related command
az --version
Is your feature request related to a problem? Please describe.
az --version outputs several valuable information apart from the current versions of installed azure-cli modules and extensions. This includes:
- Which code CLI modules are not up-to-date (
azure-cli,azure-cli-core,azure-cli-telemetry). - Path to the underlying
pythonused byaz. The mode of installation of this python. - Path to the extensions directory.
All this information is not available in a code-parsable format. We currently need to do string parsing which can be flaky.
Describe the solution you'd like
az --version -o json --query '<> can be used to query a specific property of the az installation. We can decide on the schema of the exposed property.
Describe alternatives you've considered
Currently, I need to parse the string output, using regex, etc. to get the python installation location, and also to check if upgrade is available.
Additional context
Metadata
Metadata
Labels
Azure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamCoreCLI core infrastructureCLI core infrastructureOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.This label is used to track how many GitHub issues we have resolved for OKR purpose.Upgradeaz upgradeaz upgradefeature-requestneeds-author-feedbackMore information is needed from author to address the issue.More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.There has been no recent activity on this issue.