Skip to content

[BUG] New-PnPTenantSite fails during parameter binding in PnP.PowerShell 3.1.381 - alias conflict with "RestrictedContentDiscoveryForCopilotAndAgents" #5313

@jkaczor

Description

@jkaczor

New-PnPTenantSite fails during parameter binding in PnP.PowerShell 3.1.381 with:

The parameter 'RestrictedContentDiscoveryForCopilotAndAgents' cannot be specified because it conflicts with the parameter alias of the same name for parameter 'RestrictedContentDiscoveryForCopilotAndAgents'.

Expected behavior
This command should parse and execute normally:

Set-PnPTenantSite -Identity "https://.sharepoint.com/sites/example"

(then either succeed or return a normal auth/permission/site error).

Actual behavior
In 3.1.381, the command fails immediately with the alias-conflict error above, before normal execution.

Steps to reproduce behavior

Install/use PnP.PowerShell 3.1.381.
Import that version.
Run:
New-PnPTenantSite -Identity "https://.sharepoint.com/sites/example"

Observe alias-conflict error on RestrictedContentDiscoveryForCopilotAndAgents.
What is the version of the Cmdlet module you are running?
Affected: 3.1.381
Known good: 3.1.219

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

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions