Event Subsciption Not Working for KeyVault

Alex Hofer 0 Reputation points
2023-12-29T19:06:48.2533333+00:00

I have a KeyVault that I would like to get slack messages for when Secrets are expired or near expiring.

So in my KeyVault I went to the Events menu and created a new Logic App. In the Logic App I set it to listen to the Expired and Near Expiry events and configured the Slack Action then saved the Logic App. I then went into my KeyVault and created a Secret with an expiration a few minutes from now.

When the Secret expires I can see events happening in the Events menu of the KeyVault itself and in the Event Grid System Topic. But if I click on the Event Subscription for it there is nothing there. The Logic App also doesn't see anything.

I am not sure if something is broken in the Subscription or what. I also have no idea where to view any of these events to make sure they're actually happening like I think they are.

A few things to note:

  1. I am following this tutorial.
  2. I do have the Event Grid registered as a Resource Provider.
  3. When I save the Logic App the first time it stays on the designer and I need to leave it, the page doesn't redirect or anything which I thought was kinda odd.

Can anyone think of something I may be missing, maybe another non-default resource provider it for some reason didn't add automatically? The tutorial makes it seem pretty straightforward, but it doesn't seem like my events are being picked up by Event Subscriptions for some reason.

I've tried deleting and re-creating the Logic App/Event Subscriptions. I can't delete the KeyVault as its currently in use.

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,871 Reputation points
    2024-01-03T12:44:07.2166667+00:00

    @Alex Hofer Thanks for reaching out and apology for the inconvenience due to this issue.

    Can you please navigate to your event grid subscription and validate what events you have subscribed to and whether you have configured to the same key vault for which the event was fired for the same resource. Under the General metrics of the event grid subscription did you see published events/failed events?

    This needs to be troubleshoot and validate whether we see the events at the event grid subscription or not then needs to validate whether the logic app was triggered or not. In case if their was failure/success then you can navigate to your logic app trigger history and validate if you see any failed/success?

    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.