[英]Azure Blob Trigger Not Firing
I am creating an Azure Blob Storage Trigger which is supposed to run every time a new file is dropped into the blob.我正在创建一个 Azure Blob 存储触发器,它应该在每次将新文件放入 blob 时运行。
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "myblob",
"type": "blobTrigger",
"direction": "in",
"path": "blob/{blobname}.{blobextension}",
"connection": "PROPER_CONNECTION_STRING_IS_HERE"
}
]
}
Once I upload this to my function app though, nothing happens when I drop a file in the blob.不过,一旦我将它上传到我的 function 应用程序,当我将文件放入 blob 时,什么也没有发生。 When I run the code/test portion of the function app, I am able to confirm that the code exists and runs.当我运行 function 应用程序的代码/测试部分时,我能够确认代码存在并运行。 The problem is that it doesn't run automatically when I drop a file into the blob.问题是当我将文件放入 blob 时它不会自动运行。
From the information you gave, I think you might write the connection string
directly after the connection
.根据您提供的信息,我认为您可能会在 connection 之后直接编写connection
connection string
。
If you develop in the cloud, you should write connection string
in app setting
.如果您在云端开发,您应该在app setting
中写入connection string
。
Then you need to add the configured variable name to the back of the connection
.然后需要在connection
后面加上配置的变量名。
If your approach is the same as above, then I suggest you to check if the path
in your Function.json
is configured correctly.如果您的方法与上述相同,那么我建议您检查Function.json
中的path
是否配置正确。
Or as Akash
mentioned in the comments, if you use a blob-only account
, or if your application has specialized needs, you can use Event Grid trigger .或者正如Akash
在评论中提到的那样,如果您使用blob-only account
,或者如果您的应用程序有特殊需求,您可以使用Event Grid trigger 。
If it has not solved your problem, please give more information and I will try my best to help you solve this problem.如果它没有解决您的问题,请提供更多信息,我会尽力帮助您解决这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.