NamespaceType Property Added to Azure


0

Microsoft has announced changes to the Create Namespace Service Bus PowerShell cmdlet and Create Namespace REST API. The cmdlet ships with Azure PowerShell.

Microsoft has also introduced a NamespaceType property. If you make use of cmdlets or REST API to create a namespace, then you will be able to contain both Notification hub and Messaging entities such as Queues, Topics, Relay and Event Hub.

“This was done, as indicated in the previous post, to allow customers to gradually transition off and start providing NamespaceType explicitly.” said Piyush Joshi, Program Manager, Azure Mobile.

In order to contain a Notification Hub via PowerShell or REST API you should follow the steps below

  1. Explicitly set the NamespaceType property to “NotificationHub”
  2. Create two namespaces – one to house Notification Hubs and another for messaging entities.
  3. Set the NamespaceType property to “Messaging”.

In order to explicitly set the NamespaceType to create a namespace to contain a NotificationHub you should provide the code given below

PowerShell

PowerSehll Command - Notification Hub

REST API

RESTAPI Command - Notification Hub

The above mentioned changes will be applicable only from October 26. Microsoft encourages developes to provide feedback for improvement.


Like it? Share with your friends!

0

What's Your Reaction?

hate hate
0
hate
confused confused
0
confused
fail fail
0
fail
fun fun
0
fun
geeky geeky
0
geeky
love love
0
love
lol lol
0
lol
omg omg
0
omg
win win
0
win
Anand Narayanaswamy
Anand Narayanaswamy is the editor-in-chief of Learnxpress. He was a Microsoft Most Valuable Professional (MVP) for a period of 9 years. He is a ASPInsider based in Trivandrum, Kerala State, India. Anand is the author of Community Server Quickly published by Packt Publishing.

0 Comments

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