TooManyRequests Issue Microsoft Teams PowerShell

ivan.demin 1 Reputation point
2020-03-18T14:14:22.637+00:00

Hello,

so our script is connecting MicrosoftTeams via PowerShell and ads new TeamGroup, TeamChannel and TeamUser.
Sometime it works and then in works not and we get the error TooManyRequests like in the picture.

Could it be an performance issue with the API of Microsoft Teams?
What could we do to prevent this error to happening?

Best regards,

Ivan![4911-skript.png]2
4912-skript.png

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,057 questions
0 comments No comments
{count} votes

12 answers

Sort by: Most helpful
  1. Steve Johnson 11 Reputation points
    2021-01-07T20:56:08.087+00:00

    I'm using an Automation runbook and started getting the TooManyRequests issue this afternoon using New-Team. Issue appears to be with the Teams cmdlets, since the PnP PowerShell ones are running fine.

    Anyone else experiencing any problems?

    0 comments No comments

  2. Víctor Moreno 1 Reputation point
    2022-11-02T08:58:25.36+00:00

    Anyone else having the same problem? It happens when running Get-Team via application authentication

    0 comments No comments