如何使用 Azure 流分析将本地 SQL 服务器用作输出?

How can I use Azure Stream Analytics to use an on-premise SQL Server as an Output?

我正在关注 the instructions to set up App Insights to spool to SQL using Azure Stream Analytics,但我正在尝试稍微偏离以通过 VPN 使用本地 SQL 服务器(Web 应用程序已经使用)。

在添加输出时,失败了:

是不支持 IP 地址的情况,还是比这更基本的问题?

目前 Azure 流分析仅支持 Azure SQL 数据库。 抱歉给您带来不便。

谢谢,

JS(Azure 流分析)

您可能正在直接寻找问题的答案,Jean-Sébastien 简洁地回答了这个问题。但是另一种架构,如果你还没有考虑过的话...

您可以流式传输到瞬态 Azure SQL 数据库或 Blob 存储(可能更便宜,具体取决于您的工作负载),然后使用 Azure Data Factory tunnelled via a Self-Hosted Data Factory Integration Runtime 将数据 "send" 返回到 on-前提 SQL.

Data Factory V2 也有 blob 触发器,因此它不需要计划,而是可以微批量获取任何新的 blob。

我在引号中说 "send",因为 Integration Runtime 实际上创建了从内部部署到 Azure 的传出连接,但提供了类似推送的数据传输能力。

如果数据工厂证明有用,这里是创建复制管道的指南:https://docs.microsoft.com/en-us/azure/data-factory/tutorial-hybrid-copy-portal

尽管本指南适用于本地 sql blob,但它为您提供了更强大的起点。