microsoftgraph / microsoftgraph/msgraph-sdk-powershell
Update-MgServicePrincipalSynchronizationJobSchema
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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