Azure Queue Trigger Function not firing

社会主义新天地 提交于 2020-07-09 12:50:39

问题


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"
    }
  ]
}

回答1:


figured out my mistake . I created the queues in a different storage-account . But the function was pointing out to the storage-account where it was created within a different resource group. I created those queues in the same storage-account and voila it worked



来源:https://stackoverflow.com/questions/62217881/azure-queue-trigger-function-not-firing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!