Checks/Azure/Test-MysqlFlexibleServerAuditLogConnectionActivated.ps1

function Test-MysqlFlexibleServerAuditLogConnectionActivated {
    <#
    .SYNOPSIS
        MySQL flexible server has audit_log_events including CONNECTION

    .DESCRIPTION
        **Azure Database for MySQL Flexible Server** audit configuration includes the `CONNECTION` event in `audit_log_events`.

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

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