I did this and it worked...
Could you try going to https://account.live.com/names/manage and add your phone number as an alias? This has worked according to some users.
Microsoft Teams SMS confirmation code not working

In order to use Microsoft Teams we're required to confirm a mobile phone number, and the confirmation codes being sent are not working.
When signing up for Teams using my Microsoft account, we are required to provide a phone number for verification. The verification code arrives via SMS, but when the code is entered into Teams it's not recognised.
There are no other options to proceed.
I've made several attempts myself, and have also confirmed that the same issue is occurring for at least two others, all of us from completely unrelated workplaces. The issue is therefore not unique to one individual or workplace's account, but an error with Microsoft Teams - and seems to be preventing any new users from using the app.
Please help!
2 answers
Sort by: Most helpful
-
Melissa Brown 6 Reputation points
2021-06-19T10:38:31.477+00:00 -
Sharon Zhao-MSFT 25,361 Reputation points Microsoft External Staff
2021-06-14T05:10:15.857+00:00 It is recommended you to use the Microsoft Virtual Agent to help you to contact support to access your Microsoft account.
If the response is helpful, please click "Accept Answer" and upvote it.
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.