Skip to content

Fix multi-geo SPO compatibility issues#5401

Merged
gautamdsheth merged 3 commits into
devfrom
fix/multgeo-compatv2
Jul 18, 2026
Merged

Fix multi-geo SPO compatibility issues#5401
gautamdsheth merged 3 commits into
devfrom
fix/multgeo-compatv2

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?

Addresses feedback in #5103.

What is in this Pull Request ?

Fixes multi-geo compatibility issues reported against the SPO Management Shell behavior:

  • Reads Get-PnPGeoAdministrator results as an OData feed so value/array responses deserialize correctly.
  • Aligns GeoAdministrator output property order with the SPO Management Shell type.
  • Removes the extra generic ShouldProcess prompt from Set-PnPMultiGeoExperience, leaving the single SPO-style irreversible-upgrade confirmation.
  • Aligns the unsupported-version error argument for Set-PnPMultiGeoCompanyAllowedDataLocation with the rest of the MultiGeo client.
  • Updates the relevant cmdlet documentation and changelog entry.

Align Get-PnPGeoAdministrator response handling with SPO Management Shell by reading the GeoAdministrators endpoint as an OData feed.

Remove the extra Set-PnPMultiGeoExperience ShouldProcess confirmation so it matches the SPO single irreversible-upgrade prompt, and align the allowed data location unsupported-version error message.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 18, 2026 11:43
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes Multi-Geo behavior to better match the SPO Management Shell.

Changes:

  • Corrects Geo Administrator feed deserialization and property ordering.
  • Adjusts upgrade confirmation and unsupported-version reporting.
  • Updates documentation and changelog.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
MultiGeoRestApiClient.cs Uses feed deserialization and consistent version reporting.
GeoAdministrator.cs Reorders output properties.
SetMultiGeoExperience.cs Removes the generic confirmation gate.
GetGeoAdministrator.cs Writes feed results directly.
Get-PnPGeoAdministrator.md Updates documented property order.
CHANGELOG.md Records the fixes.

Comment on lines 22 to 23
var multiGeoRestApiClient = new MultiGeoRestApiClient(AdminContext);
multiGeoRestApiClient.EnsureGeoExperienceUpgradeSupported();
Keep normal Set-PnPMultiGeoExperience execution aligned with SPO Management Shell's single ShouldContinue prompt while preventing execution when -WhatIf is supplied.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gautamdsheth

Copy link
Copy Markdown
Collaborator Author

Addressed the Set-PnPMultiGeoExperience review feedback in dd5be70. Normal execution still matches SPO Management Shell by using only the single irreversible-upgrade ShouldContinue prompt, while -WhatIf now returns before the support check/prompt/upgrade by calling ShouldProcess only for the WhatIf path.

@gautamdsheth
gautamdsheth merged commit 8dcf2bc into dev Jul 18, 2026
4 checks passed
@gautamdsheth
gautamdsheth deleted the fix/multgeo-compatv2 branch July 24, 2026 14:55
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