Other Articles

App Service – Disable Remote Debugging

This check ensures that remote debugging is disabled for Azure Web Applications to reduce attack surface and prevent unauthorized remote access to the application runtime.

Check Details

  • Resource: Azure App Service (Web App)
  • Check: Ensure Remote Debugging Is Disabled
  • Risk: Enabling remote debugging exposes application runtime endpoints that may be exploited by attackers to execute arbitrary code, inspect memory, or gain unauthorized access to sensitive data.

Remediation via Azure Portal

  1. Log in to the Azure Portal. Azure Portal dashboard
  2. Navigate to App Services and select the affected Web App. Azure App Services list
  3. In the left-hand menu, select Configuration. Web App configuration menu
  4. Under the General settings tab, locate Remote debugging.
  5. Ensure Remote debugging is set to Off. Remote debugging setting
  6. Click Save to apply the configuration.

Remediation via Azure CLI

  1. Open Azure Cloud Shell or a local terminal with Azure CLI installed. Azure Cloud Shell
  2. Disable remote debugging for the Web App:

    az webapp config set \
     --resource-group <resource-group> \
     --name <web-app-name> \
     --remote-debugging-enabled false
    
  3. Verify remote debugging status:

    az webapp config show \
     --resource-group <resource-group> \
     --name <web-app-name> \
     --query remoteDebuggingEnabled
    

Replace <resource-group> and <web-app-name> with your actual values.