Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Queue Trigger Function not firing

I have designed a Azure Queue Trigger function in Python with the following functionalities.

  1. When a message is added to Queue named Input , the function fires
  2. It processes the message added to the Input Queue and stores the result in Output Queue

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"
    }
  ]
}
like image 503
Rajesh Rajamani Avatar asked Jun 17 '26 14:06

Rajesh Rajamani


1 Answers

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.

like image 50
Nishat Sayyed Avatar answered Jun 22 '26 08:06

Nishat Sayyed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!