To begin using Service Bus queues in Azure, you must first create a namespace. A namespace provides a scoping container for addressing Service Bus resources within your application.
To create a namespace:
-
Log on to the Azure portal.
-
In the left navigation pane of the portal, click New, then click Enterprise Integration, and then click Service Bus.
-
In the Create namespace dialog, enter a namespace name. The system immediately checks to see if the name is available.
-
After making sure the namespace name is available, choose the pricing tier (Basic, Standard, or Premium).
-
In the Subscription field, choose an Azure subscription in which to create the namespace.
-
In the Resource group field, choose an existing resource group in which the namespace will live, or create a new one.
-
In Location, choose the country or region in which your namespace should be hosted.
-
Click Create. The system now creates your namespace and enables it. You might have to wait several minutes as the system provisions resources for your account.
-
In the list of namespaces, click the newly created namespace name.
-
In the namespace blade, click Shared access policies.
-
In the Shared access policies blade, click RootManageSharedAccessKey.
-
In the Policy: RootManageSharedAccessKey blade, click the copy button next to Connection string–primary key, to copy the connection string to your clipboard for later use. Paste this value into Notepad or some other temporary location.
-
Repeat the previous step, copying and pasting the value of Primary key to a temporary location for later use.