- PowerShell Core version >= 7.3.9
- Microsoft.Graph
- Az.KeyVault
- Az.Accounts
The following modules are optional but recommended to allow full usage of the module :
To send email notifications
- Send-MailKitMessage
To use a local vault for Azure authentication:
- Microsoft.PowerShell.SecretManagement
- Microsoft.PowerShell.SecretStore
To install all requirements:
Install-Module @("Microsoft.Graph";"Microsoft.PowerShell.SecretManagement";"Microsoft.PowerShell.SecretStore";"Send-MailKitMessage";“Az.Accounts”;”Az.KeyVault”)
Install Az.Secrets to one of your PSModulePath folder.
To check valid paths : $env:PSModulePath -split ';'
Import the module: Import-Module Az.Secrets
Here's an example of a query to get the expiring secrets of specified applications and sending notifications to the recipients inside $RecipientList
variable :
For all functions parameters and examples, read Az.Secrets.psm1.