Azure Function应用触发器 [英] Azure Function App Trigger
问题描述
我可以使用SFTP作为Azure函数的触发器吗?
Can I use SFTP as Trigger for an Azure Function??
如果是,该怎么做?
我选择了PYTHON作为编程语言.
I have chosen PYTHON as my programming language.
谢谢.
推荐答案
Azure Functions没有内置的SFTP触发器.
There is no built in SFTP trigger available for Azure Functions.
但是您可以使用带有 SFTP触发器,然后使用它来触发您的功能. 这是一篇文档,解释了如何从Logic Apps触发功能.
But you can have a Logic App with the SFTP Trigger and then use that to trigger your function. Here is a doc explaining how to trigger functions from Logic Apps.
此外,请注意,此SFTP触发器最终只会轮询服务器中的新文件,因此您始终可以使用带有重复性触发器和自定义代码的功能来检查SFTP服务器中的新文件.
但是,如果是这样,您还可以使用一种方法来检查文件是否已被处理.
Also, note that this SFTP trigger in the end just polls the server for new files, so you could always just have a function with a recurrence trigger and custom code to check your SFTP server for new files.
But if so, you would also have a way to check if a file was already processed.
这或多或少是如何实现可用于Logic Apps的SFTP触发器的.
This is more or less how the SFTP Trigger available for Logic Apps is implemented.
这篇关于Azure Function应用触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!