如何为站点到站点连接配置Azure功能?

问题描述:

我想为Azure Functions应用程序配置站点到站点连接. 是否有可能? 如果是,怎么办?

i want to configure Site-To-Site connectivity for the Azure Functions app. Is it possible? if yes, how?

首先,您的功能必须在App Service计划上,而不是在消费计划上.

First of all, your Function must be on an App Service Plan, not a Consumption Plan.

然后,您将需要创建一个虚拟网络.

Then you will need to create a virtual network.

然后,在功能上配置VNET集成,以使其通过点对点VPN连接到虚拟网络.

Then you configure VNET Integration on your Function to make it connect to the virtual network over a point-to-site VPN.

然后,将您的其他网络通过站点到站点VPN连接到虚拟网络.

Then you connect your other network with site-to-site VPN to the virtual network.

然后是关键部分.该功能应该已经知道如何将呼叫路由到另一个网络上的IP地址(您应该在VNET集成中看到地址空间).但是另一个网络可能不知道点对站点的地址空间.您将必须配置其他网络,以使其通过站点到站点VPN连接路由绑定到虚拟网络地址空间和点对站点地址空间的流量.

And then is the critical part. The Function should already know how to route calls to IP addresses on the other network (you should see the address space in the VNET Integration). But the other network might not know about the point-to-site address space. You will have to configure your other network such that it routes traffic bound for the virtual network address space and the point-to-site address space through the site-to-site VPN connection.