Update-MgServicePrincipalSynchronizationJobSchema
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_
Likely this is an issue with the metadata we use to generate the cmdlet