Add Start-PnPTenantRename cmdlet and related documentation for tenant domain renaming#5304
Merged
gautamdsheth merged 2 commits intodevfrom Apr 25, 2026
Merged
Add Start-PnPTenantRename cmdlet and related documentation for tenant domain renaming#5304gautamdsheth merged 2 commits intodevfrom
gautamdsheth merged 2 commits intodevfrom
Conversation
… domain renaming Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new SharePoint Online admin cmdlet to schedule a tenant domain rename (cross-platform alternative to Start-SPOTenantRename), along with the supporting REST client/models, documentation, and changelog entry.
Changes:
- Introduces
Start-PnPTenantRenamecmdlet to schedule a tenant rename job via SPO REST. - Adds REST client (
MultiGeoRestApiClient) plus request/response models for tenant rename job operations. - Adds cmdlet documentation and a changelog entry.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Commands/Utilities/MultiGeo/MultiGeoRestApiClient.cs | New REST client for tenant rename endpoints (create job, get status, warnings, cancel) with retry + OData unwrapping. |
| src/Commands/Model/TenantRenameJobEntityData.cs | New request payload model for creating tenant rename jobs. |
| src/Commands/Model/TenantRenameJob.cs | New public response model representing tenant rename job status/messages. |
| src/Commands/Admin/StartTenantRename.cs | New Start-PnPTenantRename cmdlet implementation (warnings + scheduling). |
| documentation/Start-PnPTenantRename.md | New cmdlet documentation page with syntax, description, and examples. |
| CHANGELOG.md | Adds nightly changelog entry for the new cmdlet. |
…eduled date validation Co-authored-by: Copilot <copilot@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.
Type
Related Issues?
Fixes #5297
What is in this Pull Request ?
Add Start-PnPTenantRename cmdlet and related documentation for tenant domain renaming