azuremicrosoft-graph-apiazure-eventgrid

Azure Event Grid Partner Topic Not Showing Up


According to the MS documentation, partner topics are supposed to be automatically created when you create a partner configuration. I did that for graph and nothing appears in partner topics. I also can't create a graph partner topic. Not sure what the issue is. When I click create button for graph API, I don't have the ability to save it. The two buttons I see are event grid documentation and view pending partner topics. What is going on?


Solution

  • The Partner Topic for Microsoft Graph API is created automatically once you create a subscription.

    The steps should be:

    1. Create Partner Configuration for the Event Grid
    2. Add Partner Authorization - MicrosoftGraphAPI
    3. Create a subscription and specify name of the topic by sending a request to the Graph API
    POST https://graph.microsoft.com/v1.0/subscriptions
    {
        "changeType": "Updated,Deleted,Created",
        "notificationUrl": "EventGrid:?azuresubscriptionid=<azure-subscription-id>&resourcegroup=<resource_group_name>&partnertopic=yourPartnerTopic&location=germanywestcentral",
        "lifecycleNotificationUrl": "EventGrid:?azuresubscriptionid=<azure-subscription-id>&resourcegroup=<resource_group_name>&partnertopic=yourPartnerTopic&location=germanywestcentral",
        "resource": "users",
        "expirationDateTime": "2024-10-12T00:00:00Z",
        "clientState": "secretClientValue"
    }
    
    1. In Azure Portal, search for Event Grid Partner Topics

    Partner Topics

    1. Click on the Partner Topic

    Active Topic

    1. Activate Partner Topic

    2. Once the Partner Topic is active, you can create an event subscription