modules/Azure/Checks/Test-KeyvaultKeyRotationEnabled.ps1
|
function Test-KeyvaultKeyRotationEnabled { <# .SYNOPSIS Key Vault key has automatic rotation enabled .DESCRIPTION **Azure Key Vault** keys configured with a **rotation policy** that includes a `Rotate` lifetime action. The evaluation looks for lifetime actions that schedule automatic key version creation; keys without this policy are not configured for auto-rotation. .PARAMETER Check CIEMCheck object containing check metadata. #> [CmdletBinding()] [OutputType([PSCustomObject[]])] param( [Parameter(Mandatory)] $Check ) $ErrorActionPreference = 'Stop' # TODO: Implement check logic based on Prowler check: keyvault_key_rotation_enabled [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check keyvault_key_rotation_enabled for reference.', 'N/A', 'keyvault Resources') } |