-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Closed
Copy link
Labels
CoreCLI core infrastructureCLI core infrastructureOutput QueryJMESPath query issues for Azure CLI outputJMESPath query issues for Azure CLI outputShell - PowerShellcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Description
Describe the bug
When I run az version --query "azure-cli" it should return the version number: "2.4.0"
Command Name
az version
Errors:
az version: error: argument --query: invalid jmespath_type value: "azure-cli"'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az version --query "azure-cli"
Expected Behavior
According to the tutorial pages you suggest people use to learn about JMESPath, it should work like this:
I copied the output from a plain az version execution, and selected the field I wanted manually in the online tool.
I would expect az version --query "azure-cli" to perform the same logical function and return 2.4.0
Environment Summary
Windows-10-10.0.17134-SP0
Python 3.6.6
Installer: MSI
azure-cli 2.4.0
Additional Context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CoreCLI core infrastructureCLI core infrastructureOutput QueryJMESPath query issues for Azure CLI outputJMESPath query issues for Azure CLI outputShell - PowerShellcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
