msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Update-MgServicePrincipalSynchronizationJobSchema

Open hicks-b opened this issue 4 months ago • 1 comments

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/<spId>/synchronization/jobs/<jobId>/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_

hicks-b avatar Aug 27 '25 21:08 hicks-b

Likely this is an issue with the metadata we use to generate the cmdlet

gavinbarron avatar Oct 20 '25 21:10 gavinbarron