title: Get tag value of azure resource in Powershell
body: <p><code>(Get-AzureRmResourceGroup -Name $ResourceGroup).Tags</code> #shows o/p</p>
  
  <p>Name Value</p>
  
  <hr>
  
  <p>ENV    Dev</p>
  
  <p>AppId  1</p>
  
  <pre><code>$Env = ((Get-AzureRmResourceGroup -Name $ResourceGroup).Tags | Where-Object { $_.Name -eq 'Env'}).Value
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$Env1 = (Get-AzureRmResourceGroup -Name $ResourceGroup).Tags | Where-Object { $.Name -eq 'Env'} | ForEach-Object { $.Value }
  </code></pre>
  
  <p>I am looking to find value Dev.
  But above commands is not able to provide output , am I missing something?</p>