You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-grid/subscribe-to-graph-api-events.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.date: 09/01/2022
9
9
This article describes steps to subscribe to events published by Microsoft Graph API. The following table lists the resources for which events are available through Graph API. For every resource, events for create, update and delete state changes are supported.
10
10
11
11
> [!IMPORTANT]
12
-
> Microsoft Graph API's ability to send events to Azure Event Grid is currently in **private preview**.
12
+
> Microsoft Graph API's ability to send events to Azure Event Grid is currently in **private preview**. If you have questions or need support, please email us [mailto:[email protected]?subject=Support Request](<mailto:[email protected]?subject=Support Request>).
13
13
14
14
|Microsoft event source |Resource(s) | Available event types |
15
15
|:--- | :--- | :----|
@@ -51,14 +51,13 @@ Besides the ability to subscribe to Microsoft Graph API events via Event Grid, y
51
51
52
52
## Enable Graph API events to flow to your partner topic
53
53
54
-
> [!IMPORTANT]
55
-
> In the following steps, you will follow instructions from [Node.js](https://github.com/microsoftgraph/nodejs-webhooks-sample), [Java](https://github.com/microsoftgraph/java-spring-webhooks-sample), and[.NET Core](https://github.com/microsoftgraph/aspnetcore-webhooks-sample) Webhook samples to enable flow of events from Microsoft Graph API. At some point in the sample, you will have an application registered with Azure AD. Email your application ID to <ahref="mailto:[email protected]?subject=Please allow my application ID">mailto:[email protected]?subject=Please allow my Azure AD application with ID to send events through Graph API</a> so that the Microsoft Graph API team can add your application ID to allow list to use this new capability.
56
-
57
54
You request Microsoft Graph API to send events by creating a Graph API subscription. When you create a Graph API subscription, the http request should look like the following sample:
58
55
59
56
```json
60
57
POST to https://graph.microsoft.com/beta/subscriptions
61
58
59
+
x-ms-enable-features: EventGrid
60
+
62
61
Body:
63
62
{
64
63
"changeType": "Updated,Deleted,Created",
@@ -69,8 +68,9 @@ Body:
69
68
}
70
69
```
71
70
72
-
Here are some of the key payload properties:
71
+
Here are some of the key headers and payload properties:
73
72
73
+
-`x-ms-enable-features`: Header used to indicate your desire to participate in the private preview capability to send events to Azure Event Grid. Its value must be "EventGrid". This header must be included with the request when creating a Microsoft Graph API subscription.
74
74
-`changeType`: the kind of resource changes for which you want to receive events. Valid values: `Updated`, `Deleted`, and `Created`. You can specify one or more of these values separated by commas.
75
75
-`notificationUrl`: a URI that conforms to the following pattern: `EventGrid:?azuresubscriptionid=<you-azure-subscription-id>&resourcegroup=<your-resource-group-name>&partnertopic=<the-name-for-your-partner-topic>&location=<the-Azure-region-where-you-want-the-topic-created>`.
76
76
- resource: the resource for which you need events announcing state changes.
0 commit comments