Azure队列触发器功能未触发 [英] Azure Queue Trigger Function not firing
问题描述
我已经在Python中设计了具有以下功能的Azure队列触发器功能.
I have designed a Azure Queue Trigger function in Python with the following functionalities.
- 将消息添加到名为Input的队列时,该函数将触发
- 它处理添加到输入队列中的消息,并将结果存储在输出队列中
现在我的问题是,当我在本地运行时,它运行正常.但是,在部署功能应用程序之后,如果我在输入队列中添加了一条消息,该功能就不会触发.
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 .
检查了所有内容.这是我的function.json供参考.
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"
}
]
}
推荐答案
弄清楚了我的错误.我在其他存储帐户中创建了队列.但是该功能指出了在不同资源组中创建存储帐户的位置.我在相同的存储帐户中创建了这些队列,瞧瞧
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
这篇关于Azure队列触发器功能未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!