Forum Discussion
ecwc110997
Jul 12, 2022Copper Contributor
OnPremLineURI will be deprecated. Please use LineurI to update user's phone number
Hi All Along i have been using this codes to run and assign Phone Number to Microsoft Teams but recently there is a warnings :"OnPremLineURI Will be deprecated Please use LineURI to update user's ph...
jangliss
Jul 13, 2022Steel Contributor
I'm assuming the question is "what's the alternative"? Microsoft announced the deprecation of the older PowerShell modules via admin center message MC350371 (https://admin.microsoft.com/Adminportal/Home?#/MessageCenter/:/messages/MC350371). There are details on supported versions here https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-supported-versions
The syntax for the new command is as such:
Set-CsPhoneNumberAssigment -Identity emailaddress -PhoneNumber "+1234567890" -PhoneNumberType DirectRouting
This assumes you're using direct routing. You can see https://docs.microsoft.com/en-us/powershell/module/teams/set-csphonenumberassignment?view=teams-ps for full syntax.