Forum Discussion
RobinMalik
Jul 19, 2021Copper Contributor
PowerShell: Get-Team unreliable / returning incomplete results
Hi, We have multiple issues with the Get-Team cmdlet in the MicrosoftTeams module (v2.3.0). Like many organisations, we're programmatically creating Teams based on organisational data (e.g. one T...
Deleted
Jul 28, 2021Regarding the -MailNickName filtering, they have a note at https://docs.microsoft.com/en-us/powershell/module/teams/get-team?view=teams-ps, saying this:
"Get-Team may return multiple results matching the input and not just the exact match for attributes like DisplayName/MailNickName. This is known behavior."
If "known behavior" is a new name for a bug then we may hope it gets fixed eventually.
"Get-Team may return multiple results matching the input and not just the exact match for attributes like DisplayName/MailNickName. This is known behavior."
If "known behavior" is a new name for a bug then we may hope it gets fixed eventually.
RobinMalik
Aug 05, 2021Copper Contributor
@Vadim
I must have missed that in the documentation then, thanks!
I believe my issue to be throttling related and the Get-Team cmdlet either by itself or with -MailNickName or -DisplayName won't trigger an exception that shows there is throttling happening.
You can however demonstrate it by overloading the tenancy calling Get-Team multiple times until it starts showing a lower number or 0, and then running Get-Team -GroupId with a valid ID and if you do that *at the right moment* it'll throw an exception with error 429 in the result (which indicates throttling).
I must have missed that in the documentation then, thanks!
I believe my issue to be throttling related and the Get-Team cmdlet either by itself or with -MailNickName or -DisplayName won't trigger an exception that shows there is throttling happening.
You can however demonstrate it by overloading the tenancy calling Get-Team multiple times until it starts showing a lower number or 0, and then running Get-Team -GroupId with a valid ID and if you do that *at the right moment* it'll throw an exception with error 429 in the result (which indicates throttling).