Azure / Azure-Functions

1.11k stars 196 forks source link

Nodejs Http-trigger function with timeout issue when adding the VNet integration with default setting #2547

Open nusliew opened 3 weeks ago

nusliew commented 3 weeks ago

Issue: Nodejs Http-trigger function with timeout issue when adding the VNet integration with default setting

Reproducing steps: 1.Create nodejs Http-trigger function in local and test without issue. (code is sample code, created by default) 2.Create nodejs (version 18) function app with EP1 plan. (OS: Windows) Appsetting created by default as well. image image

3.Add VNet integration in this function app. (VNet is created via Portal by default setting without any custom configuration) image image

4.Use VS code to deploy nodejs function to Azure Function created by steps#2 The status of httpTrigger function is Enabled in Portal. image

5.Invoke Http-trigger function URL, then getting timeout issue. image

If disabling VNet integration, the Http-trigger function is back to normal. image

The issue can be reproduced always once the VNet integration is enabled.

[ASK] May I know how to mitigate the issue?

bhagyshricompany commented 3 weeks ago

Hi @nusliew Thanks for updating Ensure that the VNet/subnet where your Function App is integrated allows outbound traffic to the required destinations.https://learn.microsoft.com/en-us/azure/azure-functions/functions-infrastructure-as-code?tabs=bicep%2Cwindows%2Cdevops&pivots=consumption-plan#outbound-ip-addresses