Skip to content

az version --query "azure-cli" should return version number and not throw error #13152

@silentbobbert

Description

@silentbobbert

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:

image

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

Metadata

Metadata

Assignees

Labels

CoreCLI core infrastructureOutput QueryJMESPath query issues for Azure CLI outputShell - PowerShellcustomer-reportedIssues 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 that

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions