@gohm poma Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
I understand that you are facing an error while deploying an Azure function from VS Code. The same app is working fine locally. You are encountering an InternalServerError
while syncing triggers. You have already defined AzureWebjobsStorage in both local.settings.json and in the portal function configuration. You are looking for detailed logs to identify the problem.
Please follow the below action plans for now:
- Please check if your Storage Account has the Firewall / Vnet / tunnelling enabled ? Could you please change the settings to All Network and check if that helps ? More info here.
- Please try to deploy using the zip deployment method and check if that helps.
- Please check the Function App detectors by navigating to the Diagnose and Solve Problems section in the Azure Portal for the Functions as shown below: You can rely on the Function App Down or Reporting Errors setting:
4.Please check Functions metrics for the HTTP Server Errors at the time of the issue.
5.You can also query the FunctionLogs as shown below:
More Info here.
6.Could you please enable the Application insight logs for the FunctionApp and check if there are any exceptions. You can enabled the AppInsights as explained here.You can enabled the AppInsights as explained here.
Note: If none of the above steps help, Please share the below details over an email at AzCommunity@microsoft.com ( with subject "Attn: Naveen") and include the below details:
- Your Azure Function Name
- You Azure Function App resource URI in below format: /subscriptions/XXXXXXXXXX/resourceGroups/XXXXXX/providers/Microsoft.Web/sites/XXXXXX
- Most recent UTC time of the actual issue where you received Internal server error
I will look at the backend logs to identify the root cause.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.