all Technical posts

Service Bus connector issue

Lately, I tried to connect to a Service Bus queue with limited permissions (Listen only). I encountered an issue that I want to share with you, so it can save you some time!

 

When you manage a Service Bus namespace, it’s important to think about security.  The recommended way to deal with it, is by leveraging its Shared Access Signature (SAS) authentication and authorization mechanism.  You are able to configure SAS policies on your complete ServiceBus namespace or on individual queues and topics.  Use what best meets your expectations!

On the ‘coditblog‘ queue, I created a ReadOnly shared access policy that only contains the Listen claim.  This policy was intended to be used by a Logic App that only needs to read messages from the queue. 
Svcbus 01

After creating the policy, I copied the primary connection string.
Svcbus 02

Then I created a Logic App from scratch, by adding the ServiceBus trigger ‘When a message is received in a queue (auto-complete)‘.  A connection was created by providing a connection name and the copied connection string.
Svcbus 03

When trying to select the queue name, I got the following exception:
Could not retrieve values. ConnectionString should not include EntityPath.
Svcbus 04

I double checked my connection string several times and tried multiple variations, but without any success. After some investigation, it turned out that the connector requires the Manage claim to navigate through the list of available queues. A misleading exception message…

Luckily we are not blocked by this! Just choose ‘Enter custom value‘, type the queue name and you’re good to go!
Svcbus 05

The Logic Apps starts successfully when a message arrives on the queue!
Svcbus 06

Hope this can save you some troubleshooting time!
Toon

 

Subscribe to our RSS feed

Hi there,
how can we help?

Got a project in mind?

Connect with us

Let's talk

Let's talk

Thanks, we'll be in touch soon!

Call us

Thanks, we've sent the link to your inbox

Invalid email address

Submit

Your download should start shortly!

Stay in Touch - Subscribe to Our Newsletter

Keep up to date with industry trends, events and the latest customer stories

Invalid email address

Submit

Great you’re on the list!