Checks/Azure/Test-DefenderAutoProvisioningVulnerabiltyAssessmentsMachinesOn.ps1

function Test-DefenderAutoProvisioningVulnerabiltyAssessmentsMachinesOn {
    <#
    .SYNOPSIS
        All virtual machines in the subscription have a vulnerability assessment solution installed

    .DESCRIPTION
        **Microsoft Defender for Cloud** evaluates whether **Azure VMs** and **Arc-enabled machines** have a **vulnerability assessment solution** deployed and reporting healthy coverage 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_auto_provisioning_vulnerabilty_assessments_machines_on

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