Reputation: 171
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
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.
Upvotes: 2
Reputation: 3454
Go into the access control (IAM tab) and give your user the following roles:
Upvotes: 1
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
Reputation: 25994
Your original key could be generated without Manage
option, which would result in manage operation failure.
Upvotes: 3
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