-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QueueTriggerAttribute QueueAttribute SAS Uri support #3039
Comments
Thanks for reporting pls follow the updated doc for this. microsoft |
pls share invocation id ,timestamp region. |
What documentation? link?
I reverted to use a normal connection string. Please, give some days to create a test project from scratch and run it again. |
I cannot give you an invocationID because the function is disabled during startup. I see the same behavior locally, using the Visual Studio Functions runtime. The error is:
If I deploy the function to Azure, from application insights, under exceptions, I see the same error:
(full error at the end of this message) My test function is very simple:
In configuration I have:
For your information, I have found a similar issue: Full error from Azure Application Insigths: [{"id":"66476022","outerId":"0","type":"Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexingException","message":"Error indexing method 'queuetest'","parsedStack":[{"level":0,"method":"Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexer+d__21.MoveNext","assembly":"Microsoft.Azure.WebJobs.Host, Version=3.0.39.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","line":157,"fileName":"D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Indexers\FunctionIndexer.cs"},{"level":1,"method":"System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw","assembly":"System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e","line":0},{"level":2,"method":"System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess","assembly":"System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e","line":0},{"level":3,"method":"System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification","assembly":"System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e","line":0},{"level":4,"method":"System.Runtime.CompilerServices.TaskAwaiter.GetResult","assembly":"System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e","line":0},{"level":5,"method":"Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexer+d__17.MoveNext","assembly":"Microsoft.Azure.WebJobs.Host, Version=3.0.39.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35","line":85,"fileName":"D:\a\_work\1\s\src\Microsoft.Azure.WebJobs.Host\Indexers\FunctionIndexer.cs"}],"severityLevel":"Error"},{"id":"61413291","outerId":"66476022","type":"System.Reflection.TargetInvocationException","message":"Exception has been thrown by the target of an invocation.","parsedStack":[{"level":0,"method":"System.RuntimeMethodHandle.InvokeMethod","assembly":"System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e","line":0},{"level":1,"method":"System.Reflection.RuntimeConstructorInfo.Invoke","assembly":"System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e","line":0},{"level":2,"method":"Microsoft.Extensions.Azure.ClientFactory.CreateClient","assembly":"Microsoft.Extensions.Azure, Version=1.6.3.0, Culture=neutral, PublicKeyToken=92742159e12e44c8","line":0},{"level":3,"method":"Microsoft.Extensions.Azure.AzureComponentFactoryImpl.CreateClient","assembly":"Microsoft.Extensions.Azure, Version=1.6.3.0, Culture=neutral, PublicKeyToken=92742159e12e44c8","line":0},{"level":4,"method":"Microsoft.Azure.WebJobs.Extensions.Clients.Shared.StorageClientProvider |
@fabiocav pls comment.Thanks |
An azure function needs to be linked to a couple of Azure Storage Queues. One as input, and another one as output.
For security reasons, I need to use SAS Uri. I don't want to use a full access connection string to the whole storage account. I would like to use a SAS Uri with the minimal access rights for reading and writing a specific queue.
With this configuration:
"ApplicationQueueInputURI" : "https://xxxxxxxxxxxx.queue.core.windows.net/myqueueIN?si=fullaccess&spr=ht...."
"ApplicationQueueOutputURI" : "https://xxxxxxxxxxxx.queue.core.windows.net/myqueueOUT?si=fullaccess&spr=ht...."
As far as I know QueueTriggerAttribute and QueueAttribute do not support SAS Uri for connecting to Azure Storage Queue.
In fact I get this error:
Is this the expected behavior? Do you have any plan to support SAS Uri in QueueTriggerAttribute and QueueAttribute ?
The text was updated successfully, but these errors were encountered: