I have a Blazor Interactive Server app and have set up health checks as follows:
builder.Services.AddHealthChecks()
.AddDbContextCheck<TrackingDbContext>("App Database")
.AddDbContextCheck<UserDbContext>("Identity Database");
app.MapHealthChecks("health", new HealthCheckOptions
{
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
}).AllowAnonymous();
When I run on my system using the Visual Studio integrated app server, https://localhost:7229/health
gives me JSON output with the status of each check.
When I run on this same app on Azure App Server using https://ohana.tradewindsstudios.us/health
I get:
Error.
An error occurred while processing your request.
Request ID: 00-f4dd263c9fd8791cf7c9dda48954031a-09ba2674b6a1313b-00
Where do I find details on this error? And is there something I need to set in App Server to allow this to work?