I have designed a Azure Queue Trigger function in Python with the following functionalities.
Now my problem is this is working fine when I run locally . But after deploying the function app and then if I add a message to the Input Queue , the function is not firing .
Checked everything . Here is my function.json for reference .
I havent been able to locate anything relevant to this in documentation and not sure what I'm missing .
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "msg",
"type": "queueTrigger",
"direction": "in",
"queueName": "input-messages-queue",
"connection": "AzureWebJobsStorage"
},
{
"type": "queue",
"direction": "out",
"name": "outputmessage",
"queueName": "output-responses-queue",
"connection": "AzureWebJobsStorage"
}
]
}
In my case I forgot to add the settings from my "local.settings.json" file in "Configuration" of the Azure Function App in the portal. Not doing this will not add the connection string for the queue and your function will never be triggered.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With