Milananas
Milananas

Reputation: 116

Connecting to Azure Service Bus with Listen permission results in error

I have two Azure environments, Test and Acceptance. Both have the exact same Topics and Subscriptions, only the namespace (and therefor URL) is different.

On the testing environment I used Management credentials to connect, which works perfectly and I was able to listen to the subscription for new events. On the acceptance environment I created credentials with Listen only permissions, which I'd say is meant for this exact use-case, however it returned in the following error:

Service Bus messaging entity '<entity>' or namespace '<namespace>.servicebus.windows.net' not found.\r\nclientRequestId: <reference>

The two environments are exactly the same, and connecting with management credentials to the acceptance environment works perfectly as well (to exclude any possible typo mistakes).

Upvotes: 0

Views: 789

Answers (1)

Arunprabhu
Arunprabhu

Reputation: 1494

There are three type of permissions available for Service Bus Namespaces,

  • Manage
  • Send
  • Listen

With the Manage permission, using the credential, CRUD operations and message processing can be done to the entity.

With Send and Listen permissions, only message processing can be done with the entity (i.e.) create, read, update, delete operations can not be performed, only messages can be sent or received from the entity.

Thus, when you try to fetch the entity using the send or listen credential, it will return the not found error.

Upvotes: 1

Related Questions