

If you don’t have a version that supports this new command, you’ll get the error: Set-CsPhoneNumberAssignment : The term 'Set-CsPhoneNumberAssignment' is not recognized as the name of a cmdlet,įunction, script file, or operable program. They run under the MicrosoftTeams module for PowerShell, but you also need to make sure you have the latest version. Set-CsPhoneNumberAssignment and Remove-CsPhoneNumberAssignment

I’d been allocating numbers with the Set-CsOnlineVoiceUser command.

In summary, these commands are being deprecated “The retirement is planned to begin in early April and be complete by mid-April.” :Īnd Set-CSUser can’t be used to allocate phone numbers either. Microsoft has sent out an announcement on PowerShell changes for setting and removing phone numbers in Microsoft Teams:Ĭhanges coming to phone number assignment using Teams PowerShell Module cmdlets
