Due to restrictions in the company I cannot use old azure portal. But I have a requirement to use ServiceBus in our project. I was able to create servicebus ns using resource.azure.com
, but I cannot find the way to get the connection string to that servicebus namespace.
I was trying to play around azure power shell, but it also requires access to old azure portal...
Thanks in advance.
To get Azure Service bus connection string, Sign-in to Azure portal. Select the resource group in which the Service bus is residing. Select the namespace of the service bus queue/topic for which we need the connection string.
You also need to do the following steps: Enable system-assigned identity for a topic or a domain. Add the identity to the Azure Service Bus Data Sender role on the Service Bus namespace. Then, configure the event subscription that uses a Service Bus queue or topic as an endpoint to use the system-assigned identity.
The connection string for a namespace has the following components embedded within it, Fully qualified domain name of the Event Hubs namespace you created (it includes the Event Hubs namespace name followed by servicebus.windows.net) Name of the shared access key. Value of the shared access key.
Go to New Azure portal and get the Azure Service bus Connection string. Here I attached the image to follow up the instruction.
On the portal Go to your service bus queue, -> Shared access policies -> RootManageSharedAccessKey -> On the pane that opens on the right, copy the Primary Connection string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With