Checks/Azure/Test-DefenderEnsureNotifyAlertsSeverityIsHigh.ps1

function Test-DefenderEnsureNotifyAlertsSeverityIsHigh {
    <#
    .SYNOPSIS
        Security contact has alert notifications enabled with minimum severity High or lower

    .DESCRIPTION
        **Microsoft Defender for Cloud** email notifications use a minimum alert severity of `High` or more inclusive (`Medium`/`Low`). The evaluation inspects security contacts to confirm a threshold is defined and not `Critical`.

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

    [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check defender_ensure_notify_alerts_severity_is_high for reference.', 'N/A', 'defender Resources')
}