Microsoft Teams PowerShell Error Messages
The MicrosoftTeams module: teams, policies, voice and meeting settings.All Microsoft Teams PowerShell pages
- Cannot process command because of one or more missing mandatory parameters: NumberType (Teams phone)Assigning a Teams phone number needs -Identity, -TelephoneNumber and -NumberType (DirectRouting, CallingPlan or OperatorConnect); without the type it fails.
- New-Team -Visibility: The argument does not belong to the set "Public,Private,HiddenMembership"New-Team -Visibility accepts only Public, Private or HiddenMembership. Values such as Org, Internal or Hidden fail validation before any call to Teams is made.
- Session is not established, run Connect-MicrosoftTeams before requesting access tokenThe Cs cmdlets of the MicrosoftTeams module (Get-CsOnlineUser, Grant-Cs*Policy, Set-CsPhoneNumberAssignment) need a session. Run Connect-MicrosoftTeams first.
- You must call the Connect-MicrosoftTeams cmdlet before calling any other cmdlets.Get-Team, New-Team and the other team cmdlets fail with this message when the MicrosoftTeams module has no session. Run Connect-MicrosoftTeams, then retry.