How to auto-renew the event grid subscription

Nemanja Jovic 20 Reputation points MVP

Hi all,

I have created an Event Grid Partner Topic to receive Microsoft Graph events.

The subscription expiry has a maximum of 3 days, so I am looking for the answer on how to automatically renew the subscription using the Function App which is the endpoint event handler?

I could not find any documentation on this subject.

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
278 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    I'm sorry, but I don't have any information on how to automatically renew an Event Grid subscription. The expiration time for the authorization to create a partner topic can be set between 1 to 365 days, but there is no automatic renewal option mentioned in the documentation.


    0 comments No comments

  2. JananiRamesh-MSFT 15,236 Reputation points

    @Nemanja Jovic Thanks for reaching out. You can use a PATCH API call to renew the Microsoft Graph Webhooks subscription (it doesn’t matter what the endpoint event handler).

    Update subscription - Microsoft Graph v1.0 | Microsoft Learn

    You would need to have a scheduler to run the program calling the PATCH API periodically to achieve the automatic renewal.

    let me know incase of further queries, I would be happy to assist you.

    0 comments No comments