简体   繁体   English

Azure本地数据网关-前进的道路,还是矫?过正?

[英]Azure on-premises data gateway - the way to go, or overkill?

When having some on-premises data sources that one wants to access from Azure, is the "best practice" to create a data gateway , or is this becoming an outdated approach? 当拥有一些要从Azure访问的本地数据源时,创建数据网关的“最佳实践”还是成为一种过时的方法? I ask because I notice it relies on the "Gateway Cloud Service" which as I understand it is on its way out. 我之所以问,是因为我注意到它依赖于“网关云服务”,据我所知它即将推出。

The actual requirement for me is only to be able to do a query from a functions app to the on-premises sql server. 对我来说,实际的要求仅是能够从功能应用程序向本地sql服务器进行查询。 I'm not even sure this is possible through the data gateway. 我什至不确定这是否可以通过数据网关实现。

Any and all feedback appreciated. 任何和所有反馈表示赞赏。

Take a look at hybrid connections: https://docs.microsoft.com/en-us/azure/app-service/app-service-hybrid-connections 看看混合连接: https : //docs.microsoft.com/zh-cn/azure/app-service/app-service-hybrid-connections

They are designed for what you want to do: 它们是针对您想要做的事情而设计的:

Basically, a tunnel is created between the SQL endpoint in your on-premise environment and a target endpoint for your Azure Function in the Azure environment. 基本上,在内部部署环境中的SQL终结点与Azure环境中您的Azure函数的目标终结点之间创建隧道。 It uses HTTPS traffic, so it is easy on the on-premise firewall. 它使用HTTPS流量,因此在本地防火墙上很容易。 To create the SQL endpoint, you'll need to install an agent called the 'Hybrid Connection Manager', which will act as a proxy between the Azure endpoint and the SQL server. 若要创建SQL终结点,需要安装一个名为“ Hybrid Connection Manager”的代理,该代理将充当Azure终结点和SQL Server之间的代理。

After the endpoints are established, you can connect to the Azure endpoint with your function, and it will be tunneled to the on-premise SQL (using the HCM). 建立端点之后,您可以使用函数连接到Azure端点,并且它将通过隧道传送到本地SQL(使用HCM)。

Bear in mind that this will only work with SQL accounts, not with AD accounts. 请记住,这仅适用于SQL帐户,不适用于AD帐户。 Also, the Azure Function must be hosted by a dedicated App Service Plan, not the consumption plan (alas). 此外,Azure功能必须由专用的应用程序服务计划(而非使用计划)来托管。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM