Skip to content

Azure App Service Health Check Missing

Description

Code Example

terraform
resource "azurerm_app_service" "example" {
  name                = "example-app-service"
  # ... other configurations ...

  site_config {
+     health_check_path = "/health"   # Set a path that determines the health of the app.
     # ... other configurations ...
  }

  # ... other configurations ...
}

Remediation

Terraform

Resources:

  • azurerm_app_service
  • azurerm_linux_web_app
  • azurerm_windows_web_app

Arguments:

  • site_config/[0]/health_check_path

Rule Details

FieldValue
IDIAC-0720
SeverityLOW
IaC Typearm
FrameworksTerraform,
Checkov IDCKV_AZURE_213

References