title: Filtering with Azure CLI and JMESPath for network vnet peering list
body: <p>I'm using the Azure CLI to get a list of vnet peerings: <code>az network vnet peering list</code>.  This returns json in the following structure:</p>
  
  <pre><code>[
    {
      ...
      "name": "prefix1-name",
      ...
    },
    {
      ...
      "name": "prefix2-name",
      ...
    }
  ]
  </code></pre>
  
  <p>I am trying to filter the results by names starting with some prefix.  I have tried various combinations of the following:
  <code>az network vnet peering list --resource-group my-rg --vnet-name my-vnet --query "[?starts_with(name,'prefix1-')].{name}"</code>
  However this always fails with a message like <code>].{name} was unexpected at this time</code>.</p>
  
  <p>What am I missing?</p>