EDIT This question was written in 2016 so it may not be relevant anymore
I've just created a simple Function App with one function that should be triggered when a new message is added to the queue (in-portal function)
I've used the "ServiceBusQueueTrigger - C#" template to create my function so the code looks like that:
using System;
using System.Threading.Tasks;
public static void Run(string myQueueItem, TraceWriter log)
{
log.Verbose($"C# ServiceBus queue trigger function processed message: {myQueueItem}");
}
From the Azure Portal, I've got this error:
Microsoft.ServiceBus: The remote server returned an error: (401) Unauthorized. Manage claim is required for this operation. TrackingId:6e27fe40-f667-4230-9995-d09f2ac67f35_G17,TimeStamp:4/18/2016 10:17:41 PM. System: The remote server returned an error: (401) Unauthorized.
At the beginning, I've set up my connection string with a shared access policy that only allows to listen to the queue and changed it to a Manage claim but I still have this error.
To fix this, I had to set up the connection with the RootManageSharedAccessKey that give a full access to the service bus namespace
Is it the normal/desired behavior ? Will it be possible in the future to set up connection strings with different shared access policy ?