Fixes to multi-geo cmdlets#5343
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the SharePoint Online Multi-Geo cmdlets to be more resilient across API versions and to adjust default filtering/output behavior for better usability.
Changes:
- Added Multi-Geo REST API version discovery + caching, and switched several Multi-Geo calls to use the discovered “current” API version (with minimum-version enforcement).
- Updated
Get-PnPUserAndContentMoveStatedefaults so MoveReport returns All move states/directions when not specified. - Adjusted
Get-PnPGeoMoveCrossCompatibilityStatusto emit a simplifiedPSObjectshape and updated corresponding documentation.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Commands/Utilities/MultiGeo/MultiGeoRestApiClient.cs | Adds API version discovery/caching and uses the resolved API version for selected Multi-Geo endpoints. |
| src/Commands/Admin/GetUserAndContentMoveState.cs | Changes default MoveState/MoveDirection to All for MoveReport parameter set. |
| src/Commands/Admin/GetGeoMoveCrossCompatibilityStatus.cs | Changes cmdlet output to PSObject with a renamed status property. |
| documentation/Get-PnPUserAndContentMoveState.md | Documents the new defaults and clarifies behavior when state/direction aren’t specified. |
| documentation/Get-PnPGeoMoveCrossCompatibilityStatus.md | Updates outputs documentation to match the new PSObject shape/property names. |
| private const string TenantRenameJobsPathToGetStatusV2 = "TenantRenameJobs/GetV2"; | ||
| private const string TenantRenameJobsPathToCancelAJob = "TenantRenameJobs/Cancel"; | ||
| private const string GeoMoveCompatibilityChecksApiVersion = "1.3.6"; | ||
| private const string GeoMoveCompatibilityChecksMinimumApiVersion = "1.3.6"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before creating a pull request, make sure that you have read the contribution file located at
https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md
Type
Related Issues?
Fixes #X, partially fixes #Y, mentioned in #Z, etc.
What is in this Pull Request ?
Please describe the changes in the PR.
Guidance