Read-PnPProvisioningTemplate

Loads/Reads a PnP file from the file system or a string

Syntax

Read-PnPProvisioningTemplate
    -Path <String>
                                [-TemplateProviderExtensions <ITemplateProviderExtension[]>]
Read-PnPProvisioningTemplate
    -Xml <String>
                                [-TemplateProviderExtensions <ITemplateProviderExtension[]>]

Examples

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

Read-PnPProvisioningTemplate -Path template.pnp

Loads a PnP file from the file system

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

Read-PnPProvisioningTemplate -Path template.pnp -TemplateProviderExtensions $extensions

Loads a PnP file from the file system using some custom template provider extensions while loading the file.

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

Read-PnPProvisioningTemplate -Xml $xml

Reads a PnP Provisioning template from a string containing the XML of a provisioning template

Parameters

-Path

Filename to read from, optionally including full path.

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

Allows you to specify ITemplateProviderExtension to execute while loading the template.

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

Variable to read from, containing the valid XML of a provisioning template.

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