I am spinning up our environment using PowerShell scripts. I use Tags to keep track of some useful tidbits across all Resources.
For most everything I can do something like this (skipping all the error checking and existing tags):
$resource = Get-AzureRmResouce -ResourceGroupName 'my-rg' -ResourceType 'microsoft.web/sites' -ResourceName 'my-app'
Set-AzureRmResource -ResourceId $resource.ResourceId -Tags @(${'tagname'='tagvalue';})
However, for IoT Hubs the above gives me:
The requested resource does not support http method 'PATCH'
Some resources give me another mechanism, e.g.
New-AzureRmResourceGroup -Name 'my-rg' -Tag ...
but I don't see that for IoT Hubs either.
Currently, IoT Hubs does not support add
Tags. Please refer to this feedback.If you want to manage your resource, maybe you could add tags to your resource group.