You are on page 1of 1

To avoid the key vault expiration in future, here we have provided a proposal.

1) We can write script in power shell to get all the secrets that are about to expire in a key vault.
2) Then, we can save the list of secrets that are about to expire as a text file.
3) Then, we can send an email attached with text file.

Prerequisites:

To write powershell script inside the portal-azure shell, we need to mount storage.

We can send email using NOKIA’s smtp server and smtp port.

Azure logic app:

We can use the logic app to trigger email but it costs.

Shell Script:

Using powershell, we don’t accrue any charges.

We can use windows task scheduler to trigger this script to run in a weekly manner.

You might also like