Checks/Azure/Test-AppEnsureHttpIsRedirectedToHttps.ps1
|
function Test-AppEnsureHttpIsRedirectedToHttps { <# .SYNOPSIS App Service web app redirects HTTP to HTTPS .DESCRIPTION **Azure App Service web apps** redirect `HTTP` traffic to `HTTPS` when the `HTTPS Only` setting is enabled. This evaluation identifies apps that do not force secure transport by checking whether plaintext requests are automatically redirected to encrypted endpoints. .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_http_is_redirected_to_https [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check app_ensure_http_is_redirected_to_https for reference.', 'N/A', 'app Resources') } |