[Autogenerated] we have now covered the
site rename. So let's move on to swapping
SharePoint sites. When would you swap a
SharePoint site? Some common use cases are
replacing the root side of your tenant and
you internet Go live or replacing the
enterprise search center of your
organization. But before we get into the
details, how is the site swap different?
First of all, a site swap can only be used
for the root site or the search center. It
cannot be used on any other site. Also,
while the word swap makes it seem super
simple, it's actually a bit more
complicated than that. Let's take a look
at an example. Let's say I am building a
new internet, which is currently hosted at
the tenant. URL slash sykes slash new
internet. My current internet is hosted
directly in the tenant route. What I want
to do is I want to do a site swap in order
to get the new intranet at the tenant
route. The first thing that will happen in
the swap is that the new internet will be
moved to the tenant route, while the
current internet will actually be moved to
what we call an R hive. You are real, so
it will be moved to a new location. And in
this example, it will be hosted at slash
___ slash internet. Our hive. There is
another step which is a ready rex. IT will
automatically be created at the original.
You are real of our new internet. Was that
so? At tenant URL real slash ___ slash new
internet and this will be used to redirect
any queries to that site to x new
location, which is now the tenant route.
The site swap can be done via the user
interface and if you select an eligible
site which remember are either the root
site or the search center, you will see a
replace site option appear in the toolbar.
Really important. You will only sit on
eligible sites. You will not see it on any
other ones. So most of the time you will
not see that in the menu As you work with
the admin center To do this site swap with
PowerShell, we will use the invoke Spock.
IT swap PowerShell cmdlet specify the
source. You are real. So our new internet,
the target you are real. So roots IT in
this example and our hive URL real, which
is where the current route site should go,
Dex. It The red direct site is all done
automatically in the back end, so you do not need to manage that.