问题
i want to configure Site-To-Site connectivity for the Azure Functions app. Is it possible? if yes, how?
回答1:
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.
Then you configure VNET Integration on your Function to make it connect to the virtual network over a point-to-site VPN.
Then you connect your other network with site-to-site VPN to the virtual network.
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.
来源:https://stackoverflow.com/questions/45095674/how-to-azure-function-configure-for-site-to-site-connectivity