Skip to content

[FEATURE] Rename-PnPSite or Rename-PnPTenantSite Cmdlet Request #603

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
YuriySamorodov opened this issue Apr 21, 2021 · 14 comments · Fixed by #1606
Closed

[FEATURE] Rename-PnPSite or Rename-PnPTenantSite Cmdlet Request #603

YuriySamorodov opened this issue Apr 21, 2021 · 14 comments · Fixed by #1606
Assignees
Labels
enhancement New feature or request

Comments

@YuriySamorodov
Copy link
Contributor

YuriySamorodov commented Apr 21, 2021

Is your feature request related to a problem? Please describe.
It does not seem there is any way to rename sites using PnP.PowerShell

Describe the solution you'd like
It would be great to have some kind of a cmdlet that would allow rename SharePoint Online sites with PnP.PowerShell like:

  • Rename-PnPSite
  • Rename-PnPTenantSite

Describe alternatives you've considered

Additional Context
#601

@YuriySamorodov YuriySamorodov added the enhancement New feature or request label Apr 21, 2021
@erwinvanhunen erwinvanhunen self-assigned this Apr 23, 2021
@robertcaretta
Copy link

@YuriySamorodov
Copy link
Contributor Author

Thanks @robertcaretta. My intention was changing URL as well. Set-PnPSite does not allow to change site address unfortunately.

@veronicageek
Copy link
Collaborator

@YuriySamorodov - FYI, we looked at this, but we need to discuss this cmdlet a bit further. We'll update this request in due time 🙂

@YuriySamorodov
Copy link
Contributor Author

Thanks @veronicageek You have always been and still are of a great help! Appreciate your insight.
Quick idea: -Url parameter for Set-PnPSite or Set-PnPTenantSite cmdlets would be probably even better.

@robertcaretta
Copy link

robertcaretta commented Apr 23, 2021 via email

@ToddKlindt
Copy link
Contributor

I'm working on a project and I'd probably give one of my children up to get the ability to do this in PnP. I'm not above bribing someone, just give me their Venmo address. :)

@ToddKlindt
Copy link
Contributor

In my quest to find a solution for this issue I noticed that the M365 CLI has a command for this. I know there's some code sharing between the two projects. Does that help whoever is going to write the PowerShell version?

@YuriySamorodov
Copy link
Contributor Author

Hi @erwinvanhunen @gautamdsheth ,
Just wondering if there is any progress on this?

@ToddKlindt
Copy link
Contributor

Hi @erwinvanhunen @gautamdsheth ,
Just wondering if there is any progress on this?

I wrote a function that uses PnP that does this that I've been meaning to blog. I'll get it up in the next couple of days.

@YuriySamorodov
Copy link
Contributor Author

Hi @erwinvanhunen @gautamdsheth , hope you both doing great. Is there any hope this can be added in PnP.PowerShell?

@gautamdsheth gautamdsheth self-assigned this Feb 6, 2022
gautamdsheth added a commit to gautamdsheth/powershell that referenced this issue Feb 7, 2022
@KoenZomers
Copy link
Collaborator

Took some time, but it's finally there. From tomorrows PreRelease onwards it will be available as Rename-PnPTenantSite. Thanks to @gautamdsheth!

KoenZomers added a commit that referenced this issue Feb 8, 2022
Feature #603 - added cmdlet to rename site URL
@YuriySamorodov
Copy link
Contributor Author

Hi @KoenZomers , appreciate it, You rock!

@KoenZomers
Copy link
Collaborator

Kudos go to @gautamdsheth for this one 🤗

@YuriySamorodov
Copy link
Contributor Author

YuriySamorodov commented Feb 9, 2022

@gautamdsheth , thanks for making the greatest PnP.PowerShell even better!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants