Skip to content

App service disables detailed error messages

Description

Detailed error messages provide more information about an error that occurs in your app, such as the error code, the line of code where the error occurred, and a description of the error. This information can be very useful for debugging issues with your app and identifying the root cause of the problem.

Code Example

go
resource "azurerm_app_service" "example" {
             ...
+            logs {
+               detailed_error_messages_enabled = true
+            }
             ...
    }

Remediation

Terraform

  • Resource: azurerm_app_service
  • Arguments: detailed_error_messages_enabled

Rule Details

FieldValue
IDIAC-0573
SeverityLOW
IaC Typearm
FrameworksTerraform, TerraformPlan
Checkov IDCKV_AZURE_65

References