Provisoning subsites within sites

Highlighted
Contributor

Hi

 

Is it possible to have subsites within a site and therefore be able to provision those subsites as well as the site itself using Get-SPOProvisioningTemplate and Apply-SPOProvisioningTemplate ?

 

If not, what is the way forward for provisioning subsites within sites.

 

Thanks

 

Nigel

4 Replies
Highlighted
Yes this should be possible sorry i did not read you whole post as somehow i can not view the wholepost @Lana O'Brien @Lana O'Brien dit you already have a update for me?
Highlighted

This was the whole post :-

 

 

Hi

 

Is it possible to have subsites within a site and therefore be able to provision those subsites as well as the site itself using Get-SPOProvisioningTemplate and Apply-SPOProvisioningTemplate ?

 

If not, what is the way forward for provisioning subsites within sites.

 

Thanks

 

Nigel

Highlighted

Ok my answer is the same :) could only not see this part of your post:

If not, what is the way forward for provisioning subsites within sites.

 

Thanks

 

Nigel

 

Highlighted

Hi,

 

It's only possible using custom extensibility provider for provisioning engine. OOTB Get-SPOProvisioningTemplate and Apply-SPOProvisioningTemplate are working with single web at a time. So you should iterate through all subwebs and Get-SPOProvisiongTemplate for each of those, then recreate the site structure and Apply-SPOProvisioningTemplate to each created subweb.

__

Br, Ivan