问题
My azure function is running on a Consumption plan and it needs to access a resource running on a VM on a Azure VNET. The resource cannot be exposed via http.
Is there a solution other then switching to App Service Plan?
回答1:
Currently, it is impossible. The VNet Integration feature requires a Standard, Premium, or Isolated pricing plan. Now, Consumption plan is not supported.
If it's very import for you, you could vote up this feedback.
回答2:
Azure Functions Premium was announced in Oct 2018 at Ignite. It allows Consumption-style scaling + VNet integration. Sign up for private preview here: https://aka.ms/functionspremium
来源:https://stackoverflow.com/questions/48155262/vnet-integration-for-azure-function-using-consumption-plan