Checks/Azure/Test-VmEnsureUnattachedDisksEncryptedWithCmk.ps1

function Test-VmEnsureUnattachedDisksEncryptedWithCmk {
    <#
    .SYNOPSIS
        Ensure that 'Unattached disks' are encrypted with 'Customer Managed Key' (CMK)

    .DESCRIPTION
        Ensure that unattached disks in a subscription are encrypted with a Customer Managed Key (CMK).

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

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