Azure Functions 可以部署到 Vnet 吗?

Can Azure Functions be deployed to a Vnet?

Azure Functions 可以部署在 VNet 中吗?

如果我在 VNet 中创建了应用服务环境,然后在创建函数时选择了该应用服务计划,这是否意味着 Azure 函数部署在 VNet 中并且具有与定义相同的限制等VNet?

是的,它可以部署在 VNet 中。我建议您阅读文档 integrate Functions with an Azure virtual network

Azure Functions 可以部署在应用服务环境中。应用服务环境部署在您自己的 VNET 上,可以通过 ExpressRoute 访问本地资源。

是的,您可以在 Azure App Service Environment 上托管 Azure 函数,它为安全地 运行 应用服务应用程序或您的函数提供完全隔离和专用的环境。您将对入站和出站应用程序网络流量进行细粒度控制。所以它可能受到网络安全组的限制。

ASEs are isolated to running only a single customer's applications and are always deployed into a virtual network. Customers have fine-grained control over inbound and outbound application network traffic. Applications can establish high-speed secure connections over VPNs to on-premises corporate resources.

VNet Integration with Azure function 是一项使用 Azure Functions 连接到 Azure 虚拟网络中的资源的功能。 VNet 集成仅用于从您的应用向您的 VNet 发出出站调用。

在这种情况下,您只需使用 ASE 而不是 VNet 集成将 Azure 函数部署到 VNet 中。阅读 Services that can be deployed into a virtual network