How to find Azure service bus connection string

How to find Azure service bus connection string

Basically, the Azure service bus connection string is a key value pair. In this Azure article, we will discuss where to get the Azure service bus connection string in Azure Portal. Along with that, we will also discuss a few other topics as mentioned below.

How to find Azure service bus connection string

It is so simple to get the Azure service bus connection string in Azure Portal using the below steps.

  1. Log in to the Azure Portal.
  2. Search for service bus and click on the search result service bus under the services.
get azure service bus connection string

3. Now, you will see the lists of Azure Service Bus namespaces. Click on the specific namespace where you want to see the connection string.

how to get azure service bus connection string

4. On the Service Bus Namespace page, click on the Shared access policies link from the left navigation —> Then click on the RootManageSharedAccesskey on the right side –> Now, you can able to see the Primary connection string and the secondary connection string as highlighted below. Click on the Copy button next to each connection string to copy the connection string to the clipboard.

azure service bus connection string

Azure service bus connection string format

An Azure service bus connection string looks like the one below.

Endpoint=sb://tsinfo.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=XESuR3Ce1x08G08pXs3C7SIQPAgj0/yIXfXr9YuVoos=

Azure service bus connection string contains the below parameters and basically a set of key and value pairs and is separated by semicolons.

  • Endpoint
  • SharedAccessKeyName
  • SharedAccessKey

You may also like following the below articles

Wrapping Up

Well, in this article, we discussed how to get an Azure service bus connection string and along with that we have also discussed the format of the Azure service bus connection string. Thanks for reading this article !!!