I'm getting pretty frustrated with Powershell and interacting with Teams etc. This is part of my script that has been working all week. Suddenly it is no longer returning the GroupID
.
Connect-ExchangeOnline -UserPrincipalName user@domain.com
$team = New-Team -MailNickname $TeamName -displayname $TeamName -Visibility "private"
Write-Host "Team GUID: $team.GroupID" #This is empty
New-TeamChannel -GroupId $team.GroupId -DisplayName "2021 - 2022 Academic Year"
I of course get an error saying the GroupID
is null.
Is this an issue with the code or something with Microsoft's end? I'm on the 2.5 version of the module (was the preview earlier)