I have used code similar to http://blogs.infinitesquare.com/b/tranise/archives/-azure-resource-group-une-nouvelle-facon-dorganiser-ses-environnements-dans-azure#.Vr1RrfIrLgk to create a Resource Group in Azure with C#. I am now trying to extend it by putting Tags on the Resource.
Adding resourceGroupGetResult.ResourceGroup.Tags.Add("a","1")
works, but a subsequent CreateOrUpdateAsync call fails with
"InvalidRequestContent: The request content was invalid and could not be deserialized: 'Could not find member 'provisioningState' on object of type 'ResourceGroupDefinition'. Path 'provisioningState', line 9, position 23.'."
What is the correct way to add Tags to a Resource Group? Of course I will want to add the same Tags to resources within the Group after this.
Thanks.