title: Set-AzureRmResource throwing api-version error
body: <p>I am trying to programmatically add tags to resources in Azure Government. When I try to set the tags on a resource that has no tags I am using the Set-AzureRmResource command. I have tried both setting the ApiVersion and without (without is supposed to use the latest) When I use the Debug flag it shows the version being set but I still get an error below.</p>
  
  <pre><code>Set-AzureRmResource : Cannot validate argument on parameter 'ResourceId'. The argument is null or empty. Provide an
  argument that is not null or empty, and then try the command again.
  At line:1 char:108
  + ... ONMENT=""; ORGANIZATION="" } -ResourceId $resource.ResourceId  -Force ...
  +                                              ~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidData: (:) [Set-AzureRmResource], ParameterBindingValidationException
      + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implem
     entation.SetAzureResourceCmdlet
  </code></pre>
  
  <p>The snippet I am trying to run is below.</p>
  
  <pre><code>Set-AzureRmResource -Tag @{ ENVIRONMENT=""; ORGANIZATION="" } -ResourceId $resource.ResourceId  -Force
  </code></pre>
  
  <p>Edit: Specify Azure Government
  Edit 2: Removed explicit version setting from code</p>