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.
Hi Mark,
did you solve this? I currently have the same issue and for now, there is no way to attach a phone number to that ressource account (for using with the auto attendant)…Â