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 ...
}
PreviousVulnerability Scanning not enabled for Azure Container Registry misconfiguration detected in code
NextAzure Microsoft Defender for Cloud set to Off for Resource Manager misconfiguration detected in code
Last updated
Was this helpful?
