Azure函数-具有Azure函数的表存储触发器 [英] Azure Functions - Table Storage Trigger with Azure Functions

查看:85
本文介绍了Azure函数-具有Azure函数的表存储触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I need a way to trigger the Azure functions when an entity is added to the Azure Table storage. Is there a way to do this ? When I tried to add a new Azure function, I did not see any Azure Table storage trigger. I see there is Queue and Blob triggers available.

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

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 ?

谢谢

推荐答案

表存储没有触发器绑定.

There is no trigger binding for Table Storage.

下面是有关当今可用的不同绑定所支持的内容的详细视图:

Here's a detailed view on what is supported by the different bindings available today:

https://docs.microsoft .com/zh-CN/azure/azure-functions/functions-triggers-bindings#overview

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

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 ?

是的,这种方法行得通,并且允许您在依赖单独的触发器的情况下将表数据作为输入传递.根据您正在使用的客户端类型和您的要求,使用队列触发器也是另一个不错的选择.

Yes, this approach would work and would allow you to pass the table data as an input while relying on a separate trigger. Depending on the type of clients you are working with, and your requirements, using a queue trigger is also another good option.

这篇关于Azure函数-具有Azure函数的表存储触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆