Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51951

Azure cli doesn't support JMESpath query syntax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • azure-cli-plugin
    • None
    • Jenkins version 2.124
      Azure CLI plugin version 0.7
      Azure CLI version 2.0.37 (installed via apt on Ubuntu 16.04)

      When trying to use jmespath syntax in the cli plugin, I get the error:

       

      Running: az vm list -g test-resource-group --show-details --query "[?contains(name, 'test-azure-cli')]".[powerState] -o tsv
      Failure: ERROR: az vm list: error: argument --query: invalid jmespath_type value: '"[?contains(name,'
      usage: az vm list [-h] [--verbose] [--debug] [--output {json,jsonc,table,tsv}]
                        [--query JMESPATH] [--resource-group RESOURCE_GROUP_NAME]
                        [--show-details]
      
      Build step 'azure-cli (2.0.37)' changed build result to FAILURE
      

            torosent Tomer Rosenthal
            mbacchi Matt Bacchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: