Checks/Azure/Test-VmLinuxEnforceSshAuthentication.ps1
|
function Test-VmLinuxEnforceSshAuthentication { <# .SYNOPSIS Ensure SSH key authentication is enforced on Linux-based Virtual Machines .DESCRIPTION Ensure that Azure Linux-based virtual machines are configured to use SSH keys by disabling password authentication. .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_linux_enforce_ssh_authentication [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check vm_linux_enforce_ssh_authentication for reference.', 'N/A', 'vm Resources') } |