You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it not possible to do the following in a PnP.Powershell command or do I have my Function App configured with an incorrect version or similar?
# Check if a team already exists for the group
$team = Get-PnPTeamsTeam -GroupId $Site.GroupId.Guid -Connection $webConnect
if ($team -eq $null) {
# If the team doesn't exist, create a new one
New-PnPTeamsTeam -GroupId $Site.GroupId.Guid -Connection $webConnect
Write-Output -f Cyan "Site Successfully Teamified"
} else {
Write-Output -f Cyan "Team already exists for the site"
}
System.Management.Automation.ParameterBindingException
2023-09-15T07:39:19Z [Information] OUTPUT: Message : A parameter cannot be found that matches parameter name 'GroupId'.
2023-09-15T07:39:19Z [Information] OUTPUT: ParameterName : GroupId
2023-09-15T07:39:19Z [Information] OUTPUT: ErrorId : NamedParameterNotFound
2023-09-15T07:39:19Z [Information] OUTPUT: Line : 39
2023-09-15T07:39:19Z [Information] OUTPUT: Offset : 34
2023-09-15T07:39:19Z [Information] OUTPUT: CommandInvocation :
2023-09-15T07:39:19Z [Information] OUTPUT: MyCommand : Get-PnPMicrosoft365Group
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
Is it not possible to do the following in a PnP.Powershell command or do I have my Function App configured with an incorrect version or similar?
System.Management.Automation.ParameterBindingException
2023-09-15T07:39:19Z [Information] OUTPUT: Message : A parameter cannot be found that matches parameter name 'GroupId'.
2023-09-15T07:39:19Z [Information] OUTPUT: ParameterName : GroupId
2023-09-15T07:39:19Z [Information] OUTPUT: ErrorId : NamedParameterNotFound
2023-09-15T07:39:19Z [Information] OUTPUT: Line : 39
2023-09-15T07:39:19Z [Information] OUTPUT: Offset : 34
2023-09-15T07:39:19Z [Information] OUTPUT: CommandInvocation :
2023-09-15T07:39:19Z [Information] OUTPUT: MyCommand : Get-PnPMicrosoft365Group
Beta Was this translation helpful? Give feedback.
All reactions