How to auto-renew the event grid subscription

Nemanja Jovic 20 Reputation points
2023-10-26T10:33:01.9366667+00:00

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.
392 questions
{count} votes

2 answers

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,836 Reputation points
    2023-11-01T06:00:49.9566667+00:00

    @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.

    1 person found this answer helpful.
    0 comments No comments

  2. Q&A Assist
    2023-10-26T10:33:01.94+00:00
    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.


    References:

    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.