Checks/Azure/Test-DefenderAssessmentsVmEndpointProtectionInstalled.ps1

function Test-DefenderAssessmentsVmEndpointProtectionInstalled {
    <#
    .SYNOPSIS
        All virtual machines in the subscription have endpoint protection installed

    .DESCRIPTION
        **Azure virtual machines** are assessed for the presence of an **endpoint protection (antimalware)** solution and its reported health across the subscription

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

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