title: How do I retrieve the key value pairs from Get-AzureRmResourceGroup Tags
body: <p>I have a resource group that is scheduled using a tag that has the key value pair: "IncludeInSchedule":"true"</p>
  
  <p>When I do Get-AzureRmResourceGroup -Name MyResourceGroup I see:</p>
  
  <pre><code>ResourceGroupName : MyResourceGroup
  Location          : northcentralus
  ProvisioningState : Succeeded 
  Tags              :
                      Name               Value
                      =================  ======
                      IncludeInSchedule  True
  ResourceId        : /subscriptions/ea904806-082f-4ce5-9b66-288afd61f83e/resourceGroups/MyResourceGroup
  </code></pre>
  
  <p>When I attempt to read the value in the tag into a variable I'm coming unstuck. It looks like a hashtable, but <code>Get-AzureRmResourceGroup -Name MyResourceGroup | Get-Member Tags</code> suggests it's an Array of Hashtable, am I reading that right?</p>
  
  <pre><code>Name MemberType Definition                 
  ---- ---------- ----------                 
  Tags Property   hashtable[] Tags {get;set;}
  </code></pre>
  
  <p>If I pipe the output from Get-AzureRmResourceGroup into Select-Object and expand the tags property I get:</p>
  
  <pre><code>Name  Value
  ===== =====
  Value True      
  Name  IncludeInSchedule
  </code></pre>
  
  <p>This is not what I expected to see, what I expected to see was:</p>
  
  <pre><code>IncludeInSchedule  True
  </code></pre>
  
  <p>Furthermore, when I attempt to assign the tags to a variable so I can extract the IncludeInSchedule value, I'm not seeing any values.</p>
  
  <p>How do I extract the value from this?</p>