Table of contents
TOC
Collapse the table of content
Expand the table of content

Get-PnPProvisioningTemplateFromGallery

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

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

ParameterTypeRequiredDescription
ForceSwitchParameterFalse
IdentityGuidFalse
PathStringFalse
SearchStringFalse
TargetPlatformTargetPlatformFalse
TargetScopeTargetScopeFalse

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

© 2017 Microsoft