title: How to query more than one tag in Azure Cli
body: <p>I want to query 2 or more tags then use those tags to restart specific VMs as to not restart VMs that doesn't belong to my team. </p>
  
  <p>My current command looks like this. This restarts the VMs with the restart tag = eyes.</p>
  
  <pre><code>if [[ $OPTION="start" ]];
  then
      VM_IDS=(az resource list --tag Restart=yes --query "[?type=='Microsoft.compute/virtualMachines'].id" -o tsv)
      for id in $VM_IDS
      do
          echo "starting $id"
          az vm start --ids $id --no-wait
      done
  fi
  </code></pre>