Teams Resource Accounts: Assign/unassign telephone numbers

Issue

In the Teams admin center, I was unable to assign a telephone number to a Resource Account.

“To see a service number listed here, buy a Phone System license and a Calling Plan and make sure it’s not assigned to any other voice services.”

.AssignNumber

The number I was trying to assign was a Microsoft provided number, already a service number, and unassigned.

There were free unassigned licenses (Office 365 E1, Phone System, Domestic Calling Plan) in the tenant.

I tried assigning the licenses to the Resource Account first, but this made no difference.

Resolution

You can’t assign telephone numbers to Resource Accounts using the Teams admin center as there are known issues.  Below are the steps I followed.

Create the Resource Account using the following PowerShell command (note you can use the Teams admin center if you wish for this step):

New-CsOnlineApplicationInstance -UserPrincipalName TechSupportCallQueue@x500.co.uk -ApplicationId 11cd3e2e-fccb-42ad-ad00-878b93575e07 -DisplayName "Tech Support Call Queue"

ApplicationId 11cd3e2e-fccb-42ad-ad00-878b93575e07 specifies a Call Queue.  If you’re creating an Auto Attendant instance, use ce933385-9390-45d1-9512-c8d228074e07.

Before proceeding to the next step, you need to do the following:

a) Assign the relevant Office 365 Enterprise Plan, Phone System (if it’s not E5), and a Calling Plan.

b) Assign the Resource Account to the Auto Attendant or Call Queue.

Now you may have to wait up to 24 hours for the account to be provisioned.  This never used to be the case in Skype for Business Online, and I hope Microsoft resolve this issue soon.

[WAIT] zzz [WAIT] zzz [WAIT]

Now assign the telephone number to the Resource Account using the following PowerShell command:

Set-CsOnlineVoiceApplicationInstance -Identity TechSupportCallQueue@x500.co.uk -TelephoneNumber +441914980007

You can confirm the telephone number assignment with the following:

Get-CsOnlineTelephoneNumber -TelephoneNumber +441914980007

Note if you don’t assign the required licenses to the Resource Account before assigning the telephone number, you’ll get the following error:

Set-CsOnlineVoiceApplicationInstance -Identity TechSupportCallQueue@x500.co.uk -TelephoneNumber +441914980007

The application instance does not have a valid license.

+ CategoryInfo: PermissionDenied: (Set-CsOnlineVoiceApplicationInstance:String) [Set-CsOnlineVoiceApplicationInstance], UnauthorizedAccessException

+ FullyQualifiedErrorId : UnAuthorized,Microsoft.Rtc.Management.Hosted.Bvd.SetVoiceAppEndpointCmdlet

+ PSComputerName        : admin1e.online.lync.com

And if you haven’t allowed time for the account to be provisioned, or you don’t assign the Resource Account to the relevant Auto Attendant or Call Queue, you’ll get the following error:

Set-CsOnlineVoiceApplicationInstance -Identity TechSupportCallQueue@x500.co.uk -TelephoneNumber +441914980007

WARNING: The following Application Instance not present in BVD: 741031e6-fe75-4dad-8c4a-f1e53ce94abd

Cmdlet invocation error

+ CategoryInfo          : NotSpecified: (:) [Set-CsOnlineVoiceApplicationInstance], CmdletInvocationException

+ FullyQualifiedErrorId : Error processing cmdlet request,Microsoft.Rtc.Management.Hosted.Bvd.SetVoiceAppEndpointCmdlet

+ PSComputerName        : admin1e.online.lync.com

 

 

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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