Question

Difficulty: MediumDiagnose and Log App Service Web Apps

An enterprise web application is hosted on a Windows-based Azure App Service. The application occasionally returns HTTP 500 Internal Server Error responses during startup and routing processes, but standard application traces do not contain enough detail about which IIS module or pipeline step is causing the failure. You need to capture detailed trace reports for these specific HTTP 500 errors, including the execution time and status of each IIS module in the request pipeline. Which diagnostic logging feature should you enable?

  1. A
    Web Server Logging
  2. B
    Detailed Error Messages
  3. Failed Request TracingAnswer
  4. D
    Application Logging

Answer

Failed Request Tracing
Failed Request Tracing provides detailed XML-formatted trace files for requests that match specific criteria, such as HTTP 500 errors. These traces show the step-by-step execution of IIS modules, along with execution duration and failure details, making it the correct choice for troubleshooting IIS pipeline failures.

Step-by-Step Solution

1
Analyze the diagnostic requirement.
The requirement specifies capturing detailed execution traces of IIS modules and pipeline execution times for HTTP 500 errors.
This narrows down the potential diagnostic logging features available in Azure App Service on Windows.
2
Evaluate built-in Windows App Service logging options.
Failed Request Tracing captures XML logs detailing IIS pipeline events; Detailed Error Messages captures static HTML error pages; Web Server Logging captures W3C HTTP traffic logs; Application Logging captures application-written traces.
Distinguishing between these options helps pinpoint the specific tool designed for pipeline-level tracing.
3
Select the feature that matches the XML-based pipeline trace requirement.
Failed Request Tracing is the only option that tracks individual IIS module execution and saves it in XML format under %HOME%/LogFiles/W3SVCxxxx.
Enabling this feature solves the problem of finding which IIS module caused the HTTP 500 error.

Key Concept

Distinguishing between built-in Azure App Service diagnostic logging types (Application Logging, Web Server Logging, Detailed Error Messages, and Failed Request Tracing) on Windows hosting plans.
Rate this question