How can I rename a site collection on SharePoint online?
For example, I want to change the URL from /sites/foo to /sites/foobar
Is it possible using PowerShell?
I don't think,if there is a easy way to do it.
Or if you are using any migration tools then those can be helpful.
Please check the following URL https://support.microsoft.com/en-us/kb/3053838
It is unclear what you mean by rename. If you want to change the URL from
/teams/def456, no you cannot do this without migration of the data from one site to another.
If you merely need to change the name of the site from "IT" to "Information Technology", go to the gear, click Site Settings, and click on Title, description, and icon.