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