Hi Kumar, Arun ,
Welcome to the Microsoft Q&A Platform!
The purpose of the WEBSITE_ENABLE_DIAGNOSTICS
setting in Azure App Services is to control the enabling of diagnostic features for your web application. It facilitates the collection of diagnostic data, such as HTTP logs, application logs, and telemetry, making it useful for debugging, monitoring, and performance analysis.
Effects of Turning it ON:
- Application logs, web server logs, and detailed error messages are collected.
- Additional CPU, memory, and storage are used for logging and telemetry.
- Facilitates troubleshooting and issue identification.
- Data storage and processing may incur additional costs. It mainly enable During development, testing, or when troubleshooting issues in production.
Effects of Turning it OFF
- Logging and monitoring features are turned off.
- Optimizes app performance by lowering resource consumption.
- Eliminates storage and processing costs related to diagnostics.
- May hinder proactive issue detection and troubleshooting. Disable it In production environments for optimized performance unless diagnostics are necessary. Use external tools like Application Insights for lightweight monitoring.
ref:https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs
If the answer is helpful, please click Accept Answer and kindly upvote it