How do you see why an Azure web app is returning errors?
Enable Application Insights for request/dependency/exception telemetry, and send the app’s diagnostic logs to a Log Analytics workspace. Use the portal’s Diagnose and solve problems, the Log stream, and Metrics (HTTP 5xx, response time). Query logs with KQL to find the failing requests and their exceptions.