Skip to content

Commit 048babb

Browse files
authored
Merge pull request #6698 from Stealth7777/patch-2
Updated for the publishing feature limitation
2 parents 4528054 + 3560fa9 commit 048babb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Invoke-SPOSiteSwap.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ If the target is the root site at <https://tenant-name.sharepoint.com,> then the
4747
3. Larger tenants that have more than ~10,000 licenses may also need to run the [Page Diagnostic Tool](https://docs.microsoft.com/office365/enterprise/page-diagnostics-for-spo) against the source site. Any analysis results that have the category Attention required (Red) or Improvement opprtunities (Orange) will need to be remediated before performing the swap.
4848

4949
The source and target sites can't be connected to an Office 365 group. They also can't be hub sites or associated with a hub.
50-
If a site is a hub site, unregister it as a hub site, swap the root site, and then register the site as a hub site. If a site is associated with a hub, disassociate the site, swap the root site, and then reassociate the site.
50+
If a site is a hub site, unregister it as a hub site, swap the root site, and then register the site as a hub site. If a site is associated with a hub, disassociate the site, swap the root site, and then reassociate the site.
51+
52+
If the Publishing feature has previously been activated or is currently activated on the source site, Invoke-SPOSiteSwap cannot be used.
5153

5254
## EXAMPLES
5355

@@ -89,7 +91,7 @@ Archives the existing Search Center site at <https://contoso.sharepoint.com/sear
8991

9092
URL of the source site. The site at this location must exist before performing the swap.
9193

92-
If the target is the root site at <https://tenant-name.sharepoint.com> then the source site must be either a Modern Team Site (STS#3) or a Communication Site (SITEPAGEPUBLISHING#0).
94+
If the target is the root site at <https://tenant-name.sharepoint.com> then the source site must be either a Modern Team Site (STS#3) or a Communication Site (SITEPAGEPUBLISHING#0) and **the publishing feature can never have been activated on the source site**.
9395

9496
If the target is the search center site at <https://tenant-name.sharepoint.com/search> then the source site must be either a Search Center Site (SRCHCEN#0) or a Basic Search Center Site (SRCHCENTERLITE#0).
9597

@@ -166,7 +168,7 @@ Accept wildcard characters: False
166168
167169
Overrides and ignores any warnings that have been identified by the Page Diagnostic Tool that are preventing a swap from being initiated.
168170
169-
For example, if you receive the warning "Invoke-SPOSiteSwap : Errors: 0; Warnings: 1; Details: The site is not a communications site or it has the classic publishing feature enabled." then this warning can be overriden and ignored using this parameter.
171+
For example, if you receive the warning "Invoke-SPOSiteSwap : Errors: 0; Warnings: 1; Details: 2 items are not in CDN, please enable CDN." Warnings can be overriden using this parameter but the items should be reviewed and resolved for long-term stability and performance.
170172
171173
Any errors identified by the Page Diagnostic Tool will still always prevent a swap from being initiated regardless of this parameter.
172174

0 commit comments

Comments
 (0)