This error typically occurs because a resource account (for example, one used for auto attendants or call queues in Teams) doesn’t have the required licenses assigned. When you try to assign a calling plan phone number to a resource account, Teams checks whether the account has a valid Microsoft Teams Phone System license—and if you’re using a calling plan number, the corresponding calling plan license as well.
Here’s what you can do:
- Verify Licensing Requirements:
• A resource account used for telephony must have a Teams Phone System license.
• If you’re assigning a calling plan phone number, the resource account also needs an active calling plan license.
• Note that sometimes calling plan phone numbers cannot be assigned to accounts that lack one of these licenses.
- Assign the Appropriate License:
• Sign in to the Microsoft 365 admin center.
• Go to Users > Active users (or if you’re working with resource accounts, locate the specific resource account).
• Click on the resource account and then on Licenses.
• Make sure to assign not only the Phone System license but also the Calling Plan license if you intend to assign a calling plan number.
• Save and allow a few moments for the licensing changes to propagate.
- Reattempt the Phone Number Assignment:
• Once the resource account has the appropriate licenses, try assigning the phone number again via Teams Admin Center or using PowerShell (if that’s your preferred method).
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.