'Azure alerts for key vault certificates

I am trying to set up alerts for key vault certificate expiration. So I get an azure alert say when the cert is about to expire in X days.

Many thanks



Solution 1:[1]

To set up alerts for key vault certificate expiration, try below steps:

Azure Key vault provides mechanism to trigger events when the status of a secret stored in key vault has changed. Key Vault integration with Event Grid allows users to be notified when the status of secret stored in key vault has changed.

you can make use of Microsoft.KeyVault.CertificateNearExpiry Triggers when the currents version is about to expire (30 days) as mentioned in the expiry date of the Key vault record.

  • To create event grid subscription**, go to key vault -> Events -> get started -> logic apps**
  • To configure the Event Grid Trigger select your subscription , your Resource Type as Microsoft.KeyVault.vaults and select your key vault name -> click Save As
  • Along with logic apps Event Grid System Topic is created automatically in the logic app triggered select event type as Microsoft.KeyVault.CertificateNearExpiry

To more in detail please refer this link :

https://azureintegrations.com/2021/03/20/monitoring-and-alerting-for-azure-key-vault/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Imrankhan-MT