In this post, I will provide a guide on how to troubleshoot your Azure Function if it doesn’t function properly.

Disclaimer: The instructions presented in this article are informed by my own experiences and the solutions I implemented while navigating similar challenges. I hope they can be helpful to others facing these issues as well.

Troubleshooting steps:

Sometimes, after the function app code is published to Azure, it might return the error message below:

Encountered an error (InternalServerError) from host runtime

 

The steps that you may try are in the following order:

On the function app’s Overview page, choose:

  • Refresh the Function App
  • Restart the Function App
  • Stop and Start the Function App

                ⇓

Secondly, you have to check if the correct files have been uploaded

On the left-hand pane, choose Development ToolsAdvanced Tools

Next, navigate to the Debug console and visit the wwwroot site to confirm that all Function App files are present.

This can be done using the command prompt (CMD) as well.

                 ⇓

If your function app is using Azure Storage, take a quick look at the Application settings for the AzureWebJobsStorage option.

Go to Settings, then navigate to Environment Variables. Under App Settings, locate AzureWebJobsStorage, select Advanced Edit, and update the value if it is misconfigured.

 

Another common issue is that the function app does not appear on the Overview page under the Functions tab.

 

If you did not receive any error messages during the Function App deployment, which could help troubleshoot and resolve the issue, try the following workaround steps:

Check the Function App runtime versions.

Go to the left pane and select SettingsConfigurationFunction runtime settingsRuntime version. Then, use the drop-down menu to choose a version that is compatible with your function app.

Reference: Azure Functions language stack support policyLanguages by runtime version

 

Related links

 

Share This