0
0 Comments

Hi all, hopefully someone out there can help with this.

I have an auto attendant with a resource account which works fine internally using dial-by-name. I want to assign a direct routing phone number (not a Microsoft service number) to the resource so have assigned the resource a Office 365 E3, with the Phone System add-on license.

Running the command:

PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity ReceptionAA@domain.com -TelephoneNumber +44123456789

I get an error

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        : admingb1.online.lync.com

A Get command shows all is enabled and routing to on premise:

Get-CsOnlineUser -Identity “ReceptionAA@domain.com” |select-object xxx

UserPrincipalName        : ReceptionAA@domain.com
OnPremLineURI            :
EnterpriseVoiceEnabled   : True
HostedVoiceMail          :
RegistrarPool            :
Identity                 : CN=XXX
LineURI                  :
TeamsCallingPolicy       : AllowCalling
OnlineVoiceRoutingPolicy : UK Only

Licenses:

Get-MsolUser -UserPrincipalName ReceptionAA@domain.com |select-object Licenses
Licenses
{XXXX:MCOEV, XXXX:ENTERPRISEPACK}

And for completeness

get-CsOnlineVoiceUser -Identity “ReceptionAA@domain.com”
WARNING: User ReceptionAA@domain.com is not voice user

What am I missing? Why can’t I get the phone number assigned to the account?

Any help much appreciated.

(Visited 647 times, 1 visits today)
lars.moskopp Answered question March 3, 2020
Add a Comment