You are configuring diagnostic logging for a .NET web application hosted on a Windows-based Azure App Service. You need to capture application trace messages directly to the local filesystem of the App Service for immediate, short-term troubleshooting without utilizing external Azure storage resources or external SDK dependencies. Which of the following describes the behavior of enabling Application Logging (Filesystem) in this scenario?
- AYou must integrate the Application Insights SDK into the application code without specifying a connection string to stream filesystem logs.
- BThe logging configuration automatically provisions a SAS token with full read, write, and delete permissions to write logs directly to a default Azure Storage account.
- The filesystem application logging setting is automatically disabled by Azure 12 hours after it is enabled.Answer
- DThe filesystem logging setting remains permanently enabled until you manually disable it, provided the App Service is configured with an App Service plan that supports scaling.
Answer
The filesystem application logging setting is automatically disabled by Azure 12 hours after it is enabled.
The correct answer is correct because Azure automatically disables filesystem application logging for Windows-based App Services 12 hours after enabling it. This behavior prevents the App Service instance's local storage from filling up with log files over time.
Step-by-Step Solution
Key Concept
App Service Filesystem Application Logging Behavior and Limits
Estimated Time:1m 30s