Skip to content

[BUG] Invoke-PnPSiteTemplate with -InputInstance does not accept -Path #4986

Open
@JakeStanger

Description

@JakeStanger

Reporting an Issue or Missing Feature

Issue / Documentation Issue

Expected behavior

The cmdlet correctly accepts both arguments, as per example 9.

Alternatively if this is not intended as a supported behaviour, the documentation should be updated to reflect this.

Actual behavior

Running with both InputInstance and Path arguments does not work.

Removing Path resolves the issue.

> Invoke-PnPSiteTemplate -Path .\ -InputInstance $template
Invoke-PnPSiteTemplate: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.

Steps to reproduce behavior

  1. Create template with -OutputInstance to store in memory
  2. Attempt to apply template with both -InputInstance and -Path params.

What is the version of the Cmdlet module you are running?

2.12 - 3.1.72-nightly

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions