question

ankushj-3075 avatar image
0 Votes"
ankushj-3075 asked Danstan-MSFT edited

Powershell - Setup graph api change notification subscription from powershell


I am looking to setup Microsoft graph change notification subscription using powershell script.
Looking for native method of powershell to create change notification subscription.

As term subscription, refers to 2 concepts in Microsoft, you can refer below link to understand question more clearly -
Reference : https://docs.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http



windows-server-powershellmicrosoft-graph-change-notifications
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Have you tried Microsoft Graph PowerShell SDK or would this work for you? See below change notification subscription for user updates.

 New-MgSubscription -expirationDateTime 2021-03-29T14:34:45.9356913Z -notificationUrl https://your-server.com/notifications-endpoint -changeType updated -resource /users -clientState secretClientValue



0 Votes 0 ·

1 Answer

ankushj-3075 avatar image
0 Votes"
ankushj-3075 answered ankushj-3075 edited

Hello, Is this achievable? Suggestions are welcomed.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.