Symptoms
You try to migrate a Team and you receive this error:
You are not authorized to create a new team. This is most likely because you do not have the proper Microsoft 365 Teams license activated.
Error code
IN-894-166
Details
The application is unable to create a new Team at the destination if you are not signed in with a user profile with an active Teams license.
Solution
Use an account that has an active license for Microsoft Teams to connect to your tenant.
If you have access, you can validate that your Teams license is active in the Azure Active Directory admin center.