Skip to content

Update-MgServicePrincipalSynchronizationJobSchema #3391

@hicks-b

Description

@hicks-b

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions