acousticplanet
acousticplanet

Reputation: 171

Azure Service Bus "manage claim is required for this operation"

I receive a 401 auth error: "Manage claim is required for this operation" upon executing the following statement:

        if (namespaceManager.QueueExists(QueueName))
        {
            namespaceManager.DeleteQueue(QueueName);
        }

Upvotes: 2

Views: 9253

Answers (5)

HOÀNG LONG
HOÀNG LONG

Reputation: 459

Update at 05/04/2024

During 2 weeks investigation.

I fixed by downgrade Minimum TLS version to 1.0.

Hope you solve your issue.

enter image description here

Upvotes: 2

Enrico
Enrico

Reputation: 3454

Go into the access control (IAM tab) and give your user the following roles:

  • Azure Service Bus Data Receiver
  • Azure Service Bus Data Sender

enter image description here

Upvotes: 1

Arxo Clay
Arxo Clay

Reputation: 876

I know this question is old and but wanted to add in my findings since the behavior confused me quite a bit. Hopefully this helps someone looking at this in the future.

You need a Manage claim in order to be able to do TopicExists/QueueExists kind of operations. If the topic or queue doesn't exist you can get away with no exceptions even without a Manage claim which was strange to me.

As of WindowsAzure.ServiceBus v3.4.1.

Upvotes: 4

Sean Feldman
Sean Feldman

Reputation: 25994

Your original key could be generated without Manage option, which would result in manage operation failure. enter image description here

Upvotes: 3

acousticplanet
acousticplanet

Reputation: 171

After verifying my connection string, I simply Regenerated my primary key for my access policy on the Azure Mgmt. Portal. I used the new key and was able to successfully auth.

Upvotes: 3

Related Questions