Understanding the WEBSITE_ENABLE_DIAGNOSTICS Application Setting

Kumar, Arun 20 Reputation points
2025-01-10T10:11:20.4933333+00:00

What is the purpose of the WEBSITE_ENABLE_DIAGNOSTICS application setting? What are the effects of turning it ON or OFF?

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
243 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,197 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,050 questions
0 comments No comments
{count} votes

Accepted answer
  1. Shree Hima Bindu Maganti 2,185 Reputation points Microsoft Vendor
    2025-01-10T12:23:29.9+00:00

    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
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.