Checks/Azure/Test-MonitorAlertDeletePolicyAssignment.ps1

function Test-MonitorAlertDeletePolicyAssignment {
    <#
    .SYNOPSIS
        Subscription has an Activity Log alert for policy assignment deletion

    .DESCRIPTION
        **Azure Monitor Activity log alerts** for policy assignment deletions using the `Microsoft.Authorization/policyAssignments/delete` operation at subscription scope

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

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