Checks/Azure/Test-MonitorAlertDeleteNsg.ps1

function Test-MonitorAlertDeleteNsg {
    <#
    .SYNOPSIS
        Subscription has an Activity Log alert for Network Security Group delete operations

    .DESCRIPTION
        **Azure Monitor activity log alerts** include the NSG deletion signal (`Microsoft.Network/networkSecurityGroups/delete` or `Microsoft.ClassicNetwork/networkSecurityGroups/delete`). The finding indicates whether a subscription has an alert rule configured to trigger when a Network Security Group is deleted.

    .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_nsg

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