Why are Azure Notification Hub tags not saving?

回眸只為那壹抹淺笑 提交于 2019-12-02 12:47:12

I know, it's confusing, but there're two completely separate kinds of tags that have have no relationship to each other whatsoever:

  1. 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.
  2. 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'):

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!