
I hope you're doing well.
Based on your request regarding creating a SharePoint Online site template that includes full content, homepage layout, and a linked Planner plan, this functionality isn’t fully supported natively through site scripts or site designs. These tools are great for replicating structure (like lists, libraries, branding, and page layouts), but they don’t currently support copying actual content (such as files in document libraries or Planner plans).
That said, there are workarounds available using PnP PowerShell and Microsoft Graph API. These tools allow you to:
- Recreate the homepage layout and structure.
- Copy files and folders from a source site.
- Automate the creation of a Planner plan linked to the site’s Microsoft 365 Group.
Here’s a simplified example of how this can be done using PnP PowerShell:
# Connect to SharePoint
Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/YourSite" -Interactive
# Create a new site
New-PnPSite -Type TeamSite -Title "New Project Site" -Alias "newprojectsite"
# Apply a provisioning template
Apply-PnPProvisioningTemplate -Path "template.xml"
# Copy files from source to target
Copy-PnPFile -SourceUrl "/sites/sourceSite/Shared Documents/file.docx" -TargetUrl "/sites/newprojectsite/Shared Documents/file.docx"
Please note: This script is just a template. It will need to be customized based on your specific site structure, content, and business requirements.
As this is a community forum, I can only provide guidance and templates. For more tailored assistance, I recommend creating a support ticket with Microsoft. This will allow you to work directly with a SharePoint engineer who can help you implement the solution based on your environment.
Here’s how you can create a support ticket for more personalized assistance:
- Go to Microsoft 365 Admin Center.
- Sign in with your admin account.
- Navigate to Help & Support > Type in your request and description (Provide details about your scenario and request assistance with SharePoint site provisioning and Planner integration.) > Contact support
Once you’ve submitted the ticket, feel free to share the case number with me. I’ll be happy to follow up or help coordinate if needed.
As other users will also search information in this community, kindly mark it as an answer, your valuable vote will definitely also help other users who have similar queries easily to find the correct channel and useful information more quickly.
I appreciate your kind words.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.