Get-PnPProvisioningTemplateFromGallery

Retrieves or searches provisioning templates from the PnP Template Gallery

Syntax

Get-PnPProvisioningTemplateFromGallery
   [-Identity <Guid>]
                                         [-Path <String>]
                                         [-Force [<SwitchParameter>]]
Get-PnPProvisioningTemplateFromGallery
   [-Search <String>]
                                         [-TargetPlatform <TargetPlatform>]
                                         [-TargetScope <TargetScope>]

Examples

------------------EXAMPLE 1------------------

Get-PnPProvisioningTemplateFromGallery

Retrieves all templates from the gallery

------------------EXAMPLE 2------------------

Get-PnPProvisioningTemplateFromGallery -Search "Data"

Searches for a templates containing the word 'Data' in the Display Name

------------------EXAMPLE 3------------------

Get-PnPProvisioningTemplateFromGallery -Identity ae925674-8aa6-438b-acd0-d2699a022edd

Retrieves a template with the specified ID

------------------EXAMPLE 4------------------

$template = Get-PnPProvisioningTemplateFromGallery -Identity ae925674-8aa6-438b-acd0-d2699a022edd
Apply-PnPProvisioningTemplate -InputInstance $template

Retrieves a template with the specified ID and applies it to the site.

------------------EXAMPLE 5------------------

$template = Get-PnPProvisioningTemplateFromGallery -Identity ae925674-8aa6-438b-acd0-d2699a022edd -Path c:\temp

Retrieves a template with the specified ID and saves the template to the specified path

Optional Parameters

-Force
Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity
Type:Guid
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Path
Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Search
Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-TargetPlatform
Type:TargetPlatform
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-TargetScope
Type:TargetScope
Position:Named
Accept pipeline input:False
Accept wildcard characters:False