Search code examples
azureazure-logic-appsazure-keyvaultazure-secrets

Logic apps fails to send mail to outlook for Key vault for key vault secret expiry


I'm working on logic apps for first time and having the below challenge,

I have created a logic app designer for Key vault secret expiry to send mail to outlook mail. Created a recurrence schedule followed by when an resource event occurs & send an email as shown in the picture. However the job runs as per schedule and stuck at when an resource event occurs.

I can see the eventgrid, office 365 APi connection got created. Please suggest.

enter image description here


Solution

  • After reproduced from my end:-

    1. I have created logic app as shown below:

    enter image description here

    1. Selected event type as “Microsoft.KeyVault.KeyNearExpiry” in resource event occurs trigger. This will trigger when a secret in key vault is near to expiry date.

    enter image description here

    1. Next selected send email action for sending notification.

    enter image description here

    1. Logic app ran successfully and received mail.

    enter image description here

    Note: This logic app will run automatically when secret expiration date is near to current date.