Kailash's Blogs

Create service bus queue in Azure portal

Kailash Chandra Behera | Thursday, July 23, 2020
Kailash's Blogs


The Azure service bus is azure messaging services that provide the facility to send or receives a message to/from azure service bus queue. Here in this blog, we will see how to create a service bus queue using the Azure portal.

Getting Started

The service bus queues are azure messaging service that works as a brokered messaging communication model that is used for send and receive azure message bus from the azure service bus queue. Instead of communicating directly in the distributed application, the components exchange messages via a queue, which acts as an intermediary(broker).

A message producer (sender) hands off a message to the queue and then continues its processing. Asynchronously, a message consumer (receiver) pulls the message from the queue and processes it. The producer does not have to wait for a reply from the consumer in order to continue to process and send further messages.

The Azure service bus queue offers First In, First Out (FIFO) message delivery to one or more competing consumers. That is, messages are typically received and processed by the receivers in the order in which they were added to the queue, and each message is received and processed by only one message consumer.


This demonstration describes the steps to create a Service Bus queue, using the Azure portal, creates a messaging namespace and a queue within that namespace and obtains the authorization credentials on that namespace through the azure portal and by using the .NET Standard library.

Follow the below steps to create a service bus queue in the Azure portal.

  1. Sign in to the Azure portal, click on '+ Create a resource', then click Integration, and then Service Bus.

  2. In the Create namespace dialog, do the following steps:

    1. Enter a name for the namespace. The system immediately checks to see if the name is available

    2. Select the azure service bus pricing tier (Basic, Standard, or Premium) for the namespace. The features of service queue limit to azure service bus cost, for example, If you want to use topics and subscriptions, choose either Standard or Premium. Topics/subscriptions are not supported in the Basic pricing tier.

    3. If you selected the Premium pricing tier, follow these steps

      1. Specify the number of message units. The premium tier provides resource isolation at the CPU and memory level so that each workload runs in isolation. This resource container is called a messaging unit. A premium namespace has at least one messaging unit. You can select 1, 2, or 4 messaging units for each Service Bus Premium namespace. For more information, see Service Bus Premium Messaging.

      2. Specify whether you want to make the namespace zone redundant. The zone redundancy provides enhanced availability by spreading replicas across availability zones within one region at no additional cost. For more information, see Availability zones in Azure.

    4. Choose an Azure subscription f or Subscriptionin which to create the namespace.

    5. Choose an existing resource group for Resource grouping which the namespace will live, or create a new one.

    6. Choose the region in which your namespace should be hosted for location.

  3. Confirm that the service bus namespace is deployed successfully. To see the notifications, select the bell icon (Alerts) on the toolbar. Select the name of the resource group in the notification as shown in the image. You see the resource group that contains the service bus namespace.

  4. On the Resource group page for your resource group, select your service bus namespace.

  5. You see the home page for your service bus namespace.

  6. Get the connection string

    1. Click All resources, then click the newly created namespace name.

    2. In the namespace window, click Shared access policies.

    3. In the Shared access policies screen, click RootManageSharedAccessKey.

    4. In the Policy: RootManageSharedAccessKey window, click the copy button next to Primary Connection String, to copy the connection string to your clipboard for later use. Paste this value into Notepad or some other temporary location.

    5. Repeat the previous step, copying and pasting the value of the Primary key to a temporary location for later use.

  7. Create Azure message bus queue

    1. On the Service Bus Namespace page, select Queues in the left navigational menu.

    2. On the Queues page, Click + Queue on the toolbar.

    3. Enter a name for the queue, and leave the other values with their defaults.

    4. Now, select Create.


In the above of this blog. we say how to create service bus queue, service bus queue namespace, create token for connectionstring and create a azure message queue using the azure portal. I hope you have enjoyed it a lot.

Related Articles

  1. Backup SQL Database to the Azure Blob
  2. Restore Database to Microsoft Azure Blog
  3. Post Images To Azure Blob Storage