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,059 questions
0 comments No comments
{count} votes

12 answers

Sort by: Most helpful
  1. Kai Wollmerstedt (TGIS) 1 Reputation point
    2020-12-04T11:40:55.36+00:00

    This is nice to hear ;-).
    Are you able to use other cmdlets, like get-teams?

    Best regards
    Kai


  2. Arkadiusz Wótkowski 1 Reputation point
    2020-12-04T12:48:45.36+00:00

    Same issue with New-Team command.
    Start-Sleep -Seconds 2 does it have any effect ?

    0 comments No comments

  3. FLX 1 Reputation point
    2020-12-07T08:12:25.35+00:00

    My is resolved too.

    0 comments No comments

  4. Kai Wollmerstedt (TGIS) 1 Reputation point
    2020-12-07T10:22:18.07+00:00

    Here is everything ok now

    0 comments No comments