title: Update azure tag using AZ CLI
body: <p>trying to update all the tags in a resource in one shot using Azure CLI any ideas</p>
  
  <p>This is code I tried</p>
  
  <pre><code>  jsonrtag=$(az resource show -g examplegroup -n examplevnet --resource-type "Microsoft.Network/virtualNetworks" --query tags)
      rt=$(echo $jsonrtag | tr -d '"{},' | sed 's/: /=/g')
      az resource tag --tags $rt Project=Redesign -g examplegroup -n examplevnet --resource-type "Microsoft.Network/virtualNetworks"
  </code></pre>