Add Get-PnPMultiGeoExperience cmdlet#5372
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new admin cmdlet to retrieve the tenant’s SharePoint Online multi-geo experience mode via the existing Multi-Geo REST client, along with the supporting model/enum and documentation updates.
Changes:
- Added
Get-PnPMultiGeoExperiencecmdlet returning the current geo’s multi-geo experience mode. - Extended
MultiGeoRestApiClientwith aGeoExperienceGET call and introduced response types (MultiGeoExperience,MultiGeoExperienceMode). - Added cmdlet documentation, updated related links, and added a changelog entry.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Commands/Utilities/MultiGeo/MultiGeoRestApiClient.cs | Adds a GetGeoExperience() method to retrieve experience mode via the Multi-Geo REST endpoint with API version negotiation. |
| src/Commands/Model/MultiGeoExperience.cs | Introduces the response model returned by the new cmdlet. |
| src/Commands/Enums/MultiGeoExperienceMode.cs | Adds enum representing the experience mode values. |
| src/Commands/Admin/GetMultiGeoExperience.cs | Implements Get-PnPMultiGeoExperience cmdlet. |
| documentation/Set-PnPMultiGeoExperience.md | Links to the new getter cmdlet in Related Links. |
| documentation/Get-PnPMultiGeoExperience.md | Adds documentation for the new cmdlet. |
| CHANGELOG.md | Adds an entry advertising the new cmdlet. |
| ## [Current nightly] | ||
|
|
||
| ### Added | ||
| - Added `Get-PnPMultiGeoExperience` cmdlet to retrieve the SharePoint Online multi-geo experience mode. |
Collaborator
Author
There was a problem hiding this comment.
Updated the changelog entry with the PR link.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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?
N/A
What is in this Pull Request ?
Adds
Get-PnPMultiGeoExperienceso PnP PowerShell can retrieve the SharePoint Online multi-geo experience mode without requiring the SPO Management Shell cmdlet.The implementation reuses the existing multi-geo REST client and calls the same
GeoExperienceendpoint with the existing API version negotiation used bySet-PnPMultiGeoExperience. It adds the matching response model andMultiGeoExperienceModeenum shape, plus cmdlet documentation, a related link fromSet-PnPMultiGeoExperience, and a changelog entry.Guidance
N/A