Why Are Azure Notification Hub Tags Not Saving?
I am trying to send a message to notification hub, but my tags are not saving. I checked service hub with service hub explorer, and tags are empty: Registration of device: var hs
Solution 1:
I know, it's confusing, but there're two completely separate kinds of tags that have have no relationship to each other whatsoever:
- Tags that are within the context of Azure Notification Hub service. Those apply to device registrations. So, it's Notification Hubs service-specific and describes devices. See Routing and Tag Expressions for more details.
- Tags that as a concept of Azure Resource Manager (ARM). Those apply to any resource within Azure. So it's platform-specific and are used to describe any resource/service you have within Azure. See Using tags to organize your Azure resources for more details.
So when you call hs.Add(tag)
, the associated tags apply to the device registration (i.e. 'tags of the first kind') and should show up in the Service Bus explorer:
And if you go to Azure portal and navigate to any resource (or as you did, to your hub), you'll see ARM tags there (i.e. 'tags of the second kind'):
Post a Comment for "Why Are Azure Notification Hub Tags Not Saving?"