You can assign Calling Plan Numbers (Microsoft hosted) and Direct Routing Numbers (bring your own) via PowerShell.
Calling Plan numbers using Set-CsOnlineVoiceApplicationInstance and -TelephoneNumber…
Set-CsOnlineVoiceApplicationInstance -Identity TechSupportCallQueue@x500.co.uk -TelephoneNumber +441914980007
And Direct Routing numbers using Set-CsOnlineApplicationInstance with -OnpremPhoneNumber…
Set-CsOnlineApplicationInstance -Identity TechSupportCallQueue@x500.co.uk -OnpremPhoneNumber +441914980007
If you’ve ended up here looking for a solution to this error: “A parameter cannot be found that matches parameter name ‘OnpremPhoneNumber'”, it’s because you’re using Set-CsOnlineVoiceApplicationInstance. For Direct Routing (bring your own) numbers, you need to use Set-CsOnlineApplicationInstance.
LikeLike