Troubleshoot Azure app service API from Kudu debug console cmd

Subin Joseph 1 Reputation point
2022-05-06T18:12:53.547+00:00

HI Team ,

I have published Angular + Dotnet core API in azure app service .
When i try to access my API using https://{{}servername}.azurewebsites.net/API/swagger/index.html ,
I am getting below message
"The page cannot be displayed because an internal server error has occurred."

how can i trouble shoot and find the route cause ?
(app insights doesn't give anything).

I remember there was some commands to run API dll/exe from azure kudu debug console cmd so that we will get the reason why API is down ..

Please help me with the proper command to find the API failure .

Thanks in advance

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,280 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,919 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    2022-06-03T01:32:25.877+00:00

    Hi @Subin Joseph ,

    Enable Application Logging and Web server logging which you can find out more about under Enable diagnostics logging for apps in Azure App Service. If your swagger isn't working, seeing what's going on with the request should help. If you used the SwaggerGen fluent API, then you can change your logging level in your dotnet core to perhaps see what happens with the route. You can enable logging, HTTP logging, and W3C logging for starters.

    There aren't any special commands tied to Kudu that I'm aware of so I'm thinking it's one of the various dotnet commands you may be referring to. However, you can leverage the App Service Diagnostics tools as well to investigate what's going on.

    0 comments No comments