Azure Functions - Table 使用 Azure Functions 的存储触发器

Azure Functions - Table Storage Trigger with Azure Functions

我需要一种方法来在将实体添加到 Azure Table 存储时触发 Azure 函数。有没有办法做到这一点 ?当我尝试添加新的 Azure 函数时,我没有看到任何 Azure Table 存储触发器。我看到有可用的队列和 Blob 触发器。

如果不支持 Azure table 存储触发器,那么我是否需要一个 Http 触发器并将 Azure Table 存储作为输入绑定?

谢谢

Table 存储没有触发器绑定。

下面详细介绍了当今可用的不同绑定所支持的内容:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings#overview

If there is no support for the Azure table storage trigger, then should I need to have a Http trigger and have the Azure Table storage as input binding ?

是的,这种方法可行,并且允许您在依赖单独触发器的同时将 table 数据作为输入传递。根据您使用的客户类型和您的要求,使用队列触发器也是另一个不错的选择。

@venki Fabio Cavalcante 对你说的是真的。 Azure Functions 没有存储 Table 的触发选项。但是,无论您的业务是否需要将数据存储到存储 Table 并且您作为开发人员决定将 Azure Function 用于您的体系结构,您都可以将您的函数配置为使用来自存储 [=15] 的数据=] 作为函数的输入!这真的很好用。

但是,还有另一种方法可以将您的函数配置为具有 "automagically" 触发器,使用存储队列(适用于小型企业)或服务总线(适用于需要更强大机制的企业)