Checks/Azure/Test-MonitorStorageAccountWithActivityLogsCmkEncrypted.ps1

function Test-MonitorStorageAccountWithActivityLogsCmkEncrypted {
    <#
    .SYNOPSIS
        Storage account storing Activity Log data is encrypted with a customer-managed key

    .DESCRIPTION
        **Azure Monitor Activity Logs** sent to a **Storage account** are evaluated to confirm encryption with **Customer-Managed Keys** (`CMK`) instead of **Microsoft-managed keys**.

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

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