microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Update-MgServicePrincipalSynchronizationJobSchema

Open
#3,391 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dependency: metadata-issue type:bug
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

Describe the bug

I was really struggling with getting this command to work. When running it with the -Debug switch it was noticed:

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:

PATCH

Absolute Uri:

https://graph.microsoft.com/beta/servicePrincipals//synchronization/jobs//schema

This is a PUT endpoint, not a PATCH endpoint per:
https://learn.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-update?view=graph-rest-1.0&tabs=http

I had to switch to using Invoke-MgGraphRequest to unblock me in this space

Expected behavior

PUT calls

How to reproduce

Update-MgServicePrincipalSynchronizationJobSchema -Debug

SDK Version

No response

Latest version known to work for scenario above?

2.30.0

Known Workarounds

Non

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin at Update-MgServicePrincipalSynchronizationJobSchema and inspect the generated request for the synchronization schema endpoint, comparing its method with the linked Microsoft Graph documentation. Reproduce the command with -Debug and confirm that the request uses PUT rather than PATCH.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.