Skip to content

Fixes to multi-geo cmdlets#5343

Merged
gautamdsheth merged 1 commit into
devfrom
fix/multgeo-compat
Jun 3, 2026
Merged

Fixes to multi-geo cmdlets#5343
gautamdsheth merged 1 commit into
devfrom
fix/multgeo-compat

Conversation

@gautamdsheth
Copy link
Copy Markdown
Collaborator

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

  • Bug Fix
  • New Feature
  • Sample

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

  • You can delete this section when you are submitting the pull request.*
  • Please update this PR information accordingly. We use this as part of our release notes in monthly communications.
  • Please target your PR to Dev branch. If you do not target the Dev branch we will not accept this PR.

Copilot AI review requested due to automatic review settings June 3, 2026 18:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-PnPUserAndContentMoveState defaults so MoveReport returns All move states/directions when not specified.
  • Adjusted Get-PnPGeoMoveCrossCompatibilityStatus to emit a simplified PSObject shape 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";
@gautamdsheth gautamdsheth merged commit b3c8407 into dev Jun 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants