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
{{ message }}
Repository navigation
Unable to create a configuration snapshot job with ConfigurationManagement builder #3155
I am trying to create a snapshot to be used for creating a monitor in tenant configuration management api, but getting an AggregateException with 404 code and an empty message. It seems, that no methods are implemented in this builder, as this code produces the exception:
It seems the correct method should be ConfigurationSnapshot.CreateSnapshot.PostAsync but it just doesn't exist. Also, it accepts the object of the type ConfigurationBaseline however in the Microsoft Graph API docs, the type should be probably something like ConfigurationSnapshotJob, or at least sharing properties with this type
Expected behavior
await graphClient.Admin.ConfigurationManagement.ConfigurationSnapshot.PostAsync(body)
should be scheduling a ConfigurationSnapshotJob and providing it in the response body. Alternatively, the following method should exist to conform with the API schema:
Thanks for raising this issue, I just ran into it myself.
Since I already have authentication set up on the GraphServiceClient in our library, I use the RequestAdapter to call the API directly. Setting up a fresh HttpClient with token authentication would be quite some work.
Activity
BartRolls commentedon Sep 16, 2026
Thanks for raising this issue, I just ran into it myself.
Since I already have authentication set up on the GraphServiceClient in our library, I use the RequestAdapter to call the API directly. Setting up a fresh HttpClient with token authentication would be quite some work.
Here is the code I use: