-
Notifications
You must be signed in to change notification settings - Fork 399
Description
Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Issue
Expected behavior
Please describe what output you expect to see from the PnP PowerShell Cmdlets
Channels added to a newly created Teams Team without triggering error handling / giving error
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
The cmdlet works for private channels fine but when adding standard channels the code throws an error of "Failed to execute Skype backend request GetThreadS2SRequest".
When checking the team that's been created, the standard channels are present and appear to be provisioned correctly but this issue is triggering error handling and causing the issues with the script.
Adding a retry block doesnt work as the script sees the channel as already existing.
I have tried various start-sleep lengths up to 15 mins and this hasn't had any effect.
I have also tried including the -ChannelType Standard parameter but this also had no effect.
Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
$Group = New-PnPTeamsTeam -DisplayName $DisplayName -Description $Description -Visibility Private -MailNickName $MailNickName -Owners $OwnersArray
Start-Sleep -Seconds 10
$PrivateChannel1 = Add-PnPTeamsChannel -Team $Group.GroupId -DisplayName 'Private1' -ChannelType Private -OwnerUPN $OwnersArray[0]
$PrivateChannel2 = Add-PnPTeamsChannel -Team $Group.GroupId -DisplayName 'Private2' -ChannelType Private -OwnerUPN $OwnersArray[0]
-------ERRORS START HERE --------
$PrivateChannel3 = Add-PnPTeamsChannel -Team $Group.GroupId -DisplayName "Channel3" -IsFavoriteByDefault $true
$PrivateChannel4 = Add-PnPTeamsChannel -Team $Group.GroupId -DisplayName "Channel4" -IsFavoriteByDefault $true
$PrivateChannel5 = Add-PnPTeamsChannel -Team $Group.GroupId -DisplayName "Channel5" -IsFavoriteByDefault $true
What is the version of the Cmdlet module you are running?
Powershell 7.2.17
PnP.Powershell 2.3.0
Which operating system/environment are you running PnP PowerShell on?
- [X ] Windows
