Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure - Notification Hub namespace error

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" enter image description here

Does anyone know a solution to this very strange issue?

Thanks

like image 751
ADuggan Avatar asked Jun 27 '16 10:06

ADuggan


3 Answers

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.enter image description here

like image 77
Russell Young Avatar answered Nov 13 '22 08:11

Russell Young


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.

like image 40
Masterfu Avatar answered Nov 13 '22 09:11

Masterfu


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.

like image 35
Dave Justen Avatar answered Nov 13 '22 07:11

Dave Justen