For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Azure App Service Health Check Missing misconfiguration detected in code

Azure App Service Health Check Missing misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_213

Category - Subcategory

Public Exposure - Resource Health

Provider

AZURE

Severity

LOW

Framework

ARM, Bicep, Terraform, Terraform Plan

Impact

Ensure that App Service configures health check

How to Fix

Resources:

  • azurerm_app_service

  • azurerm_linux_web_app

  • azurerm_windows_web_app

Arguments:

  • site_config/[0]/health_check_path

Ensure that the /health endpoint or any other endpoint you define responds with appropriate health status. This response will be used by Azure App Service to make routing decisions. [source,go]

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 ...

}

Last updated

Was this helpful?