I want to create an azure storage queue triggered azure function. I went through the following tutorial https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue-trigger
I basically want to trigger the function whenever a message is pushed into the queue and push the result back to another queue once a function is finished.
function.json
{
"bindings": [
{
"name": "input",
"type": "queueTrigger",
"direction": "in",
"queueName": "queue-trigger",
"connection": ""
},
{
"type": "queue",
"direction": "out",
"name": "output",
"queueName": "queue-receiver",
"connection": ""
}
]
}
When i deployed the function, then I am getting the following error in logs present in monitor.

2022-09-10T12:16:53.412 [Error] The 'QueueTrigger' function is in error:
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.QueueTrigger'.
Microsoft.Azure.WebJobs.Extensions.Storage.Queues: Storage account connection string 'AzureWebJobs<storage account name>_STORAGE' does not exist. Make sure that it is a defined App Setting.
You can see I have defined, three application settings.
AzureWebJobs<storage account>_STORAGEAzureWebJobsStorage<storage account>_STORAGE
According to documentation, if connection is empty in function.json then AzureWebJobsStorage will be used.
Even i tried to set connection:"<storage account>_STORAGE", that also raised the same error.




Then click on ok then save it.
Then send message in queue as below:
And this workaround worked for me.
connectionproperty empty, have you set the value of AzureWebJobsStorage to point to the queue's conn string ?connectionis explicitly set to"AzureWebJobs<storage account>_STORAGE"in your function.json file ?