在同一虚拟网络上找到 Azure CosmosDB 和 Azure Function

Locate Azure CosmosDB and Azure Function on same Virtual Network

我想通过使用虚拟网络 (VNET) 将对我的 CosmosDB 的访问限制为仅 Azure Functions。我也想要虚拟网络的性能提升。

https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-configure-vnet-service-endpoint

根据我的文档,Azure Functions 无法连接到虚拟网络。 (请参阅下面的应用服务计划说明中的网络限制)

https://azure.microsoft.com/en-ca/pricing/details/app-service/plans/

有没有人找到将他们的 Azure Functions 连接到虚拟网络的方法?

在您提供的 link 中,VNET 可用于 App Service Plans Standard、Premium 和 Isolated。

消费计划函数不支持 VNET,因此解决方法是 运行 您在 App Service Mode. Reference: https://docs.microsoft.com/azure/azure-functions/functions-create-vnet

中的 Azure Functions