Using an unsupported PHP runtime in Azure App Service may expose applications to security vulnerabilities
as these versions no longer receive security patches. This check ensures PHP versions are still supported.
Impact
Recommended Actions
Follow the appropriate remediation steps below to resolve the issue.
Update to a supported PHP version (8.1 or higher). Consider migrating from azurerm_app_service to azurerm_linux_web_app for access to modern PHP versions.
resource"azurerm_app_service" "good_example_no_php" {
name="example-app-service" location=azurerm_resource_group.example.location resource_group_name=azurerm_resource_group.example.name app_service_plan_id=azurerm_app_service_plan.example.idsite_config { # No PHP version specified - not using PHP
}
}