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

Save-PnPProvisioningTemplate

Bert Jansen|Last Updated: 2/16/2017

Saves a PnP file to the file systems

Syntax

Save-PnPProvisioningTemplate -InputInstance <ProvisioningTemplate>
                             -Out <String>
                             [-Force [<SwitchParameter>]]
                             [-TemplateProviderExtensions <ITemplateProviderExtension[]>]

Parameters

ParameterTypeRequiredDescription
InputInstanceProvisioningTemplateTrueAllows you to provide an in-memory instance of the ProvisioningTemplate type of the PnP Core Component. When using this parameter, the -Out parameter refers to the path for saving the template and storing any supporting file for the template.
OutStringTrueFilename to write to, optionally including full path.
ForceSwitchParameterFalseSpecifying the Force parameter will skip the confirmation question.
TemplateProviderExtensionsITemplateProviderExtension[]FalseAllows you to specify the ITemplateProviderExtension to execute while saving a template.

Examples

Example 1

PS:> Save-PnPProvisioningTemplate -InputInstance $template -Out .\template.pnp

Saves a PnP file to the file systems

© 2017 Microsoft