是否可以从 U-SQL 脚本向 Azure 服务总线队列或事件中心发送消息?

Is it possible to send messages to an Azure Service Bus Queue or Event Hub from a U-SQL script?

Azure U-SQL 脚本是否可以将消息放入 Azure 服务总线队列或 Azure 事件中心?请引用一些文档,如果你能找到它(因为我找不到它)。

我得到了答案here

U-SQL scripts cannot access any external services, including Azure services such as web apps (with only a few exceptions like ADLS and WASB storage). This is to prevent an unintended DDOS attack, since U-SQL will automatically scale that request across potentially hundreds or thousands of nodes, all running over potentially millions of rows and requesting simultaneously. Please see Michael Rys' answer for more information.

如上所述,这是不允许的。

一种可能的解决方法是让 u-sql 脚本将包含消息的文件输出到 blob 存储并使用 azure 函数 pick those up and send them to an Azure Service Bus Queue or an Azure Event Hub.