Checks/Azure/Test-AppEnsurePhpVersionIsLatest.ps1
|
function Test-AppEnsurePhpVersionIsLatest { <# .SYNOPSIS App Service web app uses the latest supported PHP version or 8.2 by default .DESCRIPTION **Azure App Service web apps** running **PHP** are evaluated to ensure the runtime is configured to the **latest supported** release. The finding compares the app's PHP stack (from `linuxFxVersion` or `php_version`) with the newest available version. .PARAMETER Check CIEMCheck object containing check metadata. #> [CmdletBinding()] [OutputType([PSCustomObject[]])] param( [Parameter(Mandatory)] [CIEMCheck]$Check ) $ErrorActionPreference = 'Stop' # TODO: Implement check logic based on Prowler check: app_ensure_php_version_is_latest [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check app_ensure_php_version_is_latest for reference.', 'N/A', 'app Resources') } |