Teams Resource Accounts: assigning Calling Plan & Direct Routing Numbers

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 -TelephoneNumber +441914980007

And Direct Routing numbers using Set-CsOnlineApplicationInstance  with -OnpremPhoneNumber

Set-CsOnlineApplicationInstance -Identity -OnpremPhoneNumber +441914980007


  1. 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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s