HowTo: Troubleshooting Azure Functions

Official Content
This documentation is valid for:

Below are some tips to troubleshoot Azure Functions.

Tip #1. See HowTo: Monitor Azure functions
Consider that the host.json file can be modified to control the logging behavior.

Tip #2. Use Azure Application Insights

For example, if you see an error in the monitor, you can use Application Insights to get the complete stack and detail of the error.

image_2021101283934_1_png

Tip #3. Get the generator trace.
You have to configure the Logging section of the generator. Note that the directory of the Azure function is read-only.
Also, you have to save the file in another directory of the structure, as shown in the following figure:

image_2021101291131_1_png

Check the Storage Account of the Azure Function under File Shares to see where to store the log file and to be able to download it.

image_202110129138_1_png