Showing posts with label Kudu. Show all posts
Showing posts with label Kudu. Show all posts

Tuesday, September 10, 2024

Debugging API Startup Errors Using Kudu in Azure App Service

Recently, I had to debug a .NET API hosted in an Azure Web App. The API failed to bootstrap and returned only a generic error message, which provided little insight into the issue.

Unfortunately, the application lacked Application Insights integration, making the troubleshooting process even more challenging.

Following is the approach I took.

I navigated to the Development Tools section of the App Service and accessed Advanced Tools to investigate further.












From there, I navigated to Kudu and accessed the Debug Console to further analyze the issue.







Navigate to wwwroot location and locate the particular exe of your API












I executed the .exe file directly in the Debug Console to capture the specific error message and identify the root cause of the issue.










By running the .exe file, I was able to see the detailed error message, which revealed that a required configuration item was missing for the application.