Table of Contents

Get-CafExpiringKeyVaultSecrets

Retrieves all Key Vault secrets that are expiring within a specified number of days.

Syntax

Get-CafExpiringKeyVaultSecrets
    [-ExpirationDays <int>]

Description

Retrieves all Key Vault secrets in the current subscription that are expiring within the given period. Uses Get-AzKeyVaultSecret and filters based on the expiration date.

Example

Get-CafExpiringKeyVaultSecrets

Parameter

-ExpirationDays The number of days ahead to check for expiring secrets.

Property Value
Type: int
Default value: 50
Required: False