Recently we announced that we are splitting the user experience between Service Bus and Notification Hubs to enable a better experience for Notification Hubs. Following up on the portal changes described in the previous blog post which are already in production for more than a month now, today we are announcing changes to the Create Namespace Service Bus PowerShell cmdlet (which ships with Azure PowerShell) and Create Namespace REST API. So if you are using the PowerShell cmdlets or REST API directly to create a Service Bus namespace, then these upcoming changes may impact you so keep reading ahead.

Along with the portal changes – we had introduced a NamespaceType property on the Namespace. We had ensured in our service backend that customers who are using REST API or PowerShell to create a namespace will be able to contain both Notification Hub and Messaging entities (e.g. Queues, Topics, Relay, Event Hub). This was done, as indicated in the previous post, to allow customers to gradually transition off and start providing NamespaceType explicitly.

We are now making the default of NamespaceType to be ‘Messaging’ to align with the Portal behavior. This means that if you are creating a namespace via PowerShell or REST API:

  1. To contain Notification Hubs then you must explicitly set the NamespaceType property to “NotificationHub”
  2. To contain Notification Hub & a messaging entity then you must create two namespaces – one to house Notification Hubs and another for messaging entities. Note that this is same as the existing portal behavior.
  3. To contain Messaging you can optionally set the NamespaceType property to “Messaging”.


Below are examples on how to explicitly set the NamespaceType to create a namespace to contain a NotificationHub.





Please note that these changes will be enforced starting October 26th. If you have strong concerns about this change, please reach out to us as we would love to hear your feedback.

Thank you!

  • Explore


    Let us know what you think of Azure and what you would like to see in the future.


    Provide feedback

  • Build your cloud computing and Azure skills with free courses by Microsoft Learn.


    Explore Azure learning

Join the conversation

Leave a Reply

Your email address will not be published. Required fields are marked *