Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
As far as I know the teamsApp/extendToM365 step in Microsoft 365 Agents Toolkit can fail with HTTP 429 (Too Many Requests) when the service throttles repeated requests during the “acquire Microsoft 365 title with the app package” operation.
When the client continues retrying quickly, it can keep the caller in a throttled state instead of allowing recovery. Microsoft Graph throttling guidance notes that throttling returns 429 and a suggested delay (for example, via Retry-After), and that immediate retries contribute to ongoing throttling.
Given this, you can try the below approach to see if it can help you:
- Stop the
teamsApp/extendToM365run as soon as 429 starts, then retry only after the service’s wait time (for example,Retry-After). Immediate retries prolong throttling. - If you need to keep working now, remove/comment out
teamsApp/extendToM365in the lifecycle YAML so provisioning can complete without hitting the throttled “extend” endpoint. - Update (or temporarily switch) the Agents Toolkit version using “Install Specific Version…” in VS Code to pick a newer build (or roll back) if the issue persists in your current version.
Hope my answer will help you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.