Save-PnPProvisioningTemplate

Saves a PnP file to the file systems

Syntax

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

Examples

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

Save-PnPProvisioningTemplate -InputInstance $template -Out .\template.pnp

Saves a PnP file to the file systems

Required Parameters

-InputInstance

Allows 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.

Type:ProvisioningTemplate
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Out

Filename to write to, optionally including full path.

Type:String
Position:0
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Force

Specifying the Force parameter will skip the confirmation question.

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-TemplateProviderExtensions

Allows you to specify the ITemplateProviderExtension to execute while saving a template.

Type:ITemplateProviderExtension[]
Position:Named
Accept pipeline input:False
Accept wildcard characters:False