{"id":5154,"date":"2020-06-19T00:06:43","date_gmt":"2020-06-19T00:06:43","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5154"},"modified":"2021-06-23T00:08:18","modified_gmt":"2021-06-23T00:08:18","slug":"sharepoint-site-swap","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/sharepoint-site-swap","title":{"rendered":"Sharepoint Site Swap"},"content":{"rendered":"<p class=\"x_MsoNormal\">Had an issue over the past few weeks where I couldn\u2019t swap out the root sharepoint site with a different site.<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\">In the Office365 gui the error I got was \u00a0<\/p><p class=\"x_MsoNormal\">Couldn&#8217;t replace root site &#8230;\/sites\/team Wait 10 minutes, and then try again<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\">And in Powershell<\/p><p class=\"x_MsoNormal\">&gt; Invoke-SPOSiteSwap -SourceUrl\u00a0https:\/\/XXXXX.sharepoint.com\/sites\/Team\u00a0-TargetUrl\u00a0https:\/\/XXXXX.sharepoint.com\u00a0-ArchiveUrl\u00a0<span class=\"x_MsoSmartlink\">https:\/\/XXXXX.sharepoint.com\/sites\/CommsArchive<\/span><\/p><p class=\"x_MsoNormal\">Invoke-SPOSiteSwap : The operation is blocked due to maintenance. Please try again later<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\">There\u2019s a known issue that you need to enable the Office365 private CDN for this to work. \u00a0Command is below:<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\">&gt; Set-SPOTenantCdnEnabled -CdnType Private -Enable $true<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\">WARNING: Enabling this feature will turn on a content delivery network (CDN) for this tenant to provide fast and<\/p><p class=\"x_MsoNormal\">reliable performance for shared assets. The CDN may have privacy and compliance standards that differ from the<\/p><p class=\"x_MsoNormal\">commitments and compliance boundaries outlined by the Microsoft Office365 Trust Center, and data cached through this<\/p><p class=\"x_MsoNormal\">service may not conform to the Microsoft Data Processing Terms (DPT). For more information on CDNs,<\/p><p class=\"x_MsoNormal\">see:https:\/\/go.microsoft.com\/fwlink\/?linkid=2077392<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\">Confirm<\/p><p class=\"x_MsoNormal\">Are you sure you want to perform this action?<\/p><p class=\"x_MsoNormal\">Performing the operation &#8220;Enable Tenant CDN&#8221; on target &#8220;Private CDN&#8221;.<\/p><p class=\"x_MsoNormal\">[Y] Yes\u00a0 [A] Yes to All\u00a0 [N] No\u00a0 [L] No to All\u00a0 [S] Suspend\u00a0 [?] Help (default is &#8220;Y&#8221;): y<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\">WARNING: Files of type GIF,ICO,JPEG,JPG,JS,PNG,GLB stored in the locations configured to serve as Private CDN origins<\/p><p class=\"x_MsoNormal\">will now also be served and cached in Content Delivery Network (CDN). Although only authenticated users are authorized<\/p><p class=\"x_MsoNormal\">to access such content, the CDN is not monitored nor governed by Microsoft content policies.<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\">After this, the site swap process just work<\/p>","protected":false},"excerpt":{"rendered":"<p>Had an issue over the past few weeks where I couldn\u2019t swap out the root sharepoint site with a different site.\u00a0In the Office365 gui the error I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2921,3502,942,3501],"class_list":["post-5154","post","type-post","status-publish","format-standard","hentry","category-research","tag-cdn","tag-enable-tenant-cdn","tag-sharepoint","tag-siteswap"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5154"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5154\/revisions"}],"predecessor-version":[{"id":5156,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5154\/revisions\/5156"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}