Commands › SharePoint Online
Add-SPOSiteDesignTask
Similar to Invoke-SPOSiteDesign, this command is used to apply a published site design to a specified site collection target. It schedules the operation, allowing for the application of larger site scripts (Invoke-SPOSiteDesign is limited to 30 actions and subactions). The supported site templates you can apply a site design to include: "modern" team site (with O365 group), "modern" team site (without an O365 group); communication site; classic team site; and classic publishing site.
Quick start script
# Add-SPOSiteDesignTask — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Run and inspect
Add-SPOSiteDesignTask -SiteDesignId <Guid> -WebUrl <String> | Format-List
# 3. Export for evidence / drift tracking
Add-SPOSiteDesignTask | Export-Clixml .\SPOSiteDesignTask-$(Get-Date -Format yyyyMMdd).xml
Syntax
Add-SPOSiteDesignTask [-SiteDesignId] <Guid> [-WebUrl] <String> [<CommonParameters>]
Parameters (2)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.