I have a Queue Trigger in Azure function Function, Right now it has method signature as : Run([QueueTrigger("listner")]string myQueueItem, TraceWriter log)
I want to add one more parameter of type CloudQueueMessage. So when i added it. it throws an error like Message ->
(QueueTriggerForFileProcessing) Error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.QueueTriggerForFileProcessing'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'msg' to type CloudQueueMessage. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. config.UseServiceBus(), config.UseTimers(), etc.).
Does anyone come across similar requirement ? any workable solution to this?
Thanks in advance
Ravi
string
withCloudQueueMessage
. From which line do you get this runtime exception? Could you extend the question with the complete function body (smallest possible repro)? – Mikhail Shilkov