Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 1.69 KB

GetPnPProvisioningTemplateFromGallery.md

File metadata and controls

58 lines (49 loc) · 1.69 KB

#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>]

##Parameters

Parameter Type Required Description
Force SwitchParameter False
Identity Guid False
Path String False
Search String False
TargetPlatform TargetPlatform False
TargetScope TargetScope False
##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