Forum Discussion
PnP Provisoning to include Sub sites
- Nov 08, 2016
I agree with Deleted. The reason why you would need to keep your root site is that site columns and content types should live within the root site. Therefore you will find quite often tthat when you update the subsite's template you will also need to reapply the root site as columns/content types could have chnaged.
- Nov 08, 2016
I agree with Deleted. The reason why you would need to keep your root site is that site columns and content types should live within the root site. Therefore you will find quite often tthat when you update the subsite's template you will also need to reapply the root site as columns/content types could have chnaged.
- Vijay RajagopolanNov 08, 2016Copper Contributor
Thank you so much that is what I thought but want to make sure the approach is correct and also not missing information that is already out there.
Thanks,
Vijay
Pieter Veenstra wrote:I agree with Deleted. The reason why you would need to keep your root site is that site columns and content types should live within the root site. Therefore you will find quite often tthat when you update the subsite's template you will also need to reapply the root site as columns/content types could have chnaged.
- nitinkumar kakuldeDec 30, 2016Copper Contributor
Hi Team,
I am able to migrate the site structure of Site collection to another site collection of other teanant in SharePOint online but same is not working for sub site to sub site misite structure migration using below PnP Get and Apply provisiontemplate command
Connect-SPOnline -Url https://domainName.sharepoint.com/Sites/TT1/SubSite -Credential DEV #(Get-Credential)
Apply-SPOProvisioningTemplate -Path .\RetailerExtranetQARootSiteStructureToTSW_2.xmlIn PowerShell it shows logs that lists and CT created but actually its not create anything at subsite level.
Site collection level migration working perfect by executinge below command
Connect-SPOnline -Url https://domainName.sharepoint.com/Sites/TT1 -Credential DEV #(Get-Credential)
Apply-SPOProvisioningTemplate -Path .\SiteCollectionLevelStructure.xmlYour help would be appreciated. Please let me know as soon as possible where is the problem.