问题
Im trying to set up push notifications with Azure at the moment but every time i go and try to set up a notification hub, it gives me an error saying the "Namespace already exists. Please enter a different name"
Does anyone know a solution to this very strange issue?
Thanks
回答1:
The namespace has to be globally unique, since it forms part of the dns address of the service. You will have to add some more uniqueness to it for your purpose, else it's clashing with another azure service that someone else has already created.
回答2:
Please check if you are (co-)administrator for the subscription you try to create the namespace in. If you only are owner of the ResourceGroup you try to create the namespace in, you will receive this misleading error message.
The reason for this is: Notification Hubs are implemented based on Service Bus, but Service Bus needs subscription level admin rights to be created.
I got the same error when I tried to create a namespace when I was only Resource Group admin but not subscription admin, but once I became subscription admin I had no problems whatsoever.
回答3:
I ran into this issue and determined that it was because my free trail had ended. I created a new account, started a new free trial and it worked.
回答4:
In general try to resolve <namespace name>.servicebus.windows.net
IP address, for example on Windows it is nslookup <namespace name>.servicebus.windows.net
. If you can get the IP address, then the namespace name is already taken, otherwise you should be able to create namespace.
回答5:
Namespace is supposed to be a unique name. The namespace name PushNotificationHub-ns is already taken. I am not having any issues using any name. Can you try using a different browser or use the old azure portal and see if you can create a namespace there
来源:https://stackoverflow.com/questions/38051976/azure-notification-hub-namespace-error