title: AZ CLI Query Resources with Dashes in name
body: <p>I am trying to check if a subscription rule exists before attempting to create the rule but I am getting an error suggesting (I am assuming it doesn't like the dashes in the name).</p>
  <p>How do I query something with dashes in its name?</p>
  <pre><code>ERROR: argument --query: invalid jmespath_type value: '[?name==foo-bar-hello-world]'
  </code></pre>
  <p>The powershell script I am using is this</p>
  <pre><code>$existingRule = az servicebus topic subscription list `
  -g 'my-rg' `
  --namespace-name 'some-namespace' `
  --topic-name 'my-topic' `
  --query &quot;[?name==$SubscriptionName]&quot; `
  | ConvertFrom-Json
  </code></pre>
  <p>This is called from a yml pipeline file</p>
  <pre><code>  - task: AzureCLI@2
      displayName: 'Add Topic Rule'
      inputs:
        azureSubscription: '${{parameters.azureResourceManagerConnection}}'
        scriptType: 'ps'
        scriptLocation: 'scriptPath'
        scriptPath: '$(Pipeline.Workspace)/Scripts/Create-TopicRule.ps1'
        ScriptArguments: &gt;-
          -subscriptionName 'foo-bar-hello-world'
  </code></pre>