Invoke-SiteDesign
SharePoint Online: Invokes a site design
#Requires -Version 5.1
#Requires -Modules Microsoft.Online.SharePoint.PowerShell
[CmdletBinding()]
Param([Parameter(Mandatory = $true)][guid]$Identity, [Parameter(Mandatory = $true)][string]$WebUrl)
Process {
try {
$result = Invoke-SPOSiteDesign -Identity $Identity -WebUrl $WebUrl -ErrorAction Stop | Select-Object *
if ($null -ne $result) { $result | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format "yyyy-MM-dd HH:mm:ss") -PassThru -Force }
}
catch { throw }
}Site design ID
Target site URL