Syncing triggers failed

gohm poma 20 Reputation points
2023-10-11T21:55:11.18+00:00

I try to deploy an azure function from VS Code and I get the following error:

python-test-project: Deployment successful.
python-test-project: Syncing triggers...
python-test-project: Syncing triggers (Attempt 2/6)...
python-test-project: Syncing triggers (Attempt 3/6)...
python-test-project: Syncing triggers (Attempt 4/6)...
python-test-project: Syncing triggers (Attempt 5/6)...
python-test-project: Syncing triggers (Attempt 6/6)...
Error: Encountered an error (InternalServerError) from host runtime.

The function is created in VS Code (is the one having the dummy code when you first created an azure function from VS Code). It runs locally.

AzureWebjobsStorage is defined both in local.settings.json and in portal function configuration. Where I can find detail logs to identify the problem?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,299 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 17,280 Reputation points Microsoft Employee
    2023-10-12T06:03:35.2933333+00:00

    @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:

    1. 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.
    2. Please try to deploy using the zip deployment method and check if that helps.
    3. 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:

    User's image

    4.Please check Functions metrics for the HTTP Server Errors at the time of the issue.

    User's image

    5.You can also query the FunctionLogs as shown below:

    User's image

    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.