Question

Difficulty: MediumConfigure Azure App Services

An administrator configures application logging for an Azure App Service web app named WebApp1. The administrator enables Application Logging (Filesystem) and sets the level to Information.

Two days later, the administrator notices that application logs are no longer being generated, even though the application is actively processing requests. Other web server logs continue to be written.

What is the most likely cause of this behavior?

  1. A
    The App Service plan scaled in, which deleted the virtual machine instance storing the active log files.
  2. B
    The Storage Account SAS token used for the diagnostic settings expired after 24 hours.
  3. The Application Logging (Filesystem) setting was automatically disabled after 12 hours.Answer
  4. D
    The Log Analytics workspace linked to the App Service reached its daily ingestion cap.

Answer

The Application Logging (Filesystem) setting was automatically disabled after 12 hours.
The correct answer is correct because Azure App Service Application Logging (Filesystem) is explicitly designed for temporary troubleshooting. To prevent local disk space exhaustion, Azure automatically disables this setting exactly 12 hours after it is enabled.

Step-by-Step Solution

1
Identify the type of logging configured for the App Service web app.
The administrator configured Application Logging (Filesystem).
Different logging methods have different retention and lifecycle behaviors.
2
Recall the lifecycle rules for Azure App Service filesystem application logs.
Azure automatically disables Application Logging (Filesystem) 12 hours after it is turned on.
This behavior prevents the local disk from filling up and is designed only for temporary live debugging.
3
Select the option that matches this lifecycle behavior.
The option stating the setting was automatically disabled after 12 hours is correct.
It explains why application logs stopped generating after two days while other logs (which do not have a 12-hour auto-disable feature) continue to write.

Key Concept

Azure App Service Application Logging Lifecycle
Estimated Time:1m 30s
Rate this question