Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This can also be achieved problematically using the teams powershell module: 


Code Block
$ticketID = "AIE-xxxxxx"
$TeamsToAdd = @("Project: ADL23 Year 1 Class Team 1", "Project: ADL23 Year 1 Class Team 2", "Project: ADL23 Year 1 Class Team 3")

Foreach ($Team in $TeamsToAdd) {
    $MailNickname = $Team -replace " ",""
    $MailNickname = $MailNickname -replace ":",""
    write-host "email is $MailNickname, Team name is $team"
    $group = New-Team -MailNickname "$MailNickname" -displayname "$Team" -description = $ticketID -Visibility "private" -owner "annmareed@aie.edu.au","travis.hart@aie.edu.au"      
	New-TeamChannel -GroupId $group.GroupId -DisplayName "General"
    New-TeamChannel -GroupId $group.GroupId -DisplayName "Meetings"
    New-TeamChannel -GroupId $group.GroupId -DisplayName "Art"
    New-TeamChannel -GroupId $group.GroupId -DisplayName "Design"
    New-TeamChannel -GroupId $group.GroupId -DisplayName "Programming"     
	}

...