Azure Key Vault Event creation using Logic App not working

Arundhati Sen 151 Reputation points
2023-08-10T07:58:24.67+00:00

I am trying to send automated mail when a Azure Key Vault Secret is near expiry date. I am following this (https://learn.microsoft.com/en-us/azure/key-vault/general/event-grid-logicapps) , and using LogicApps to send mail based on event creation.

Under AKV > Events > Logic Apps selected

User's image

Then created the LA flow

User's image

Then clicked on Save As > added Logic App Name > Create

But after that also it is not getting saved, and I am unable to see the event created under event subscription. The LogicApp workflow is created but not present in event subscription

User's image

I have Event Hub Resource Provider also Registered in my Subscription. I am not sure what I am missing.

Please help.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,212 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
395 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Mike Urnun 9,821 Reputation points Microsoft Employee
    2023-08-16T19:34:49.0466667+00:00

    Hello @Arundhati Sen - Thanks for reaching out! I've gone over the steps in the same doc that you referenced above and didn't run into any problems. While I did get an empty list like you upon navigating to the Event Subscription page after creating the Logic App successfully, I hit the refresh button (highlighted in the screenshot below) and was able to see the Logic Apps listed under the Event Subscription page:

    User's image

    Could it have been just a matter of refreshing the page for you too? If you're still blocked with this issue, let me know in the comments below and we'd be happy to help.


  2. Dhanuka Jayasinghe 1 Reputation point
    2024-01-10T17:14:44+00:00

    This is happen if you have not registered EventGrid as a service provider under your subscription. Logic app will be created, but you won't see a EventGrid subscription under key vault. It happened to me as well. Once i checked and registered EventGrid as a service provider and re-create the logic app, the subscription got created.

    Prerequisite #4 from the same link https://learn.microsoft.com/en-us/azure/key-vault/general/event-grid-logicapps

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.