Forum Discussion

krzkal's avatar
krzkal
Copper Contributor
Mar 25, 2020
Solved

Unable to create a Call Queue

Hi,

 

I am trying to create a Call Queue in Teams using Powershell, but for some reason I can neither create a new call queue nor add the Teams-generated phone number to the resource account.

 

The functionality is missing from the portal, but it seemed PS can do the job just fine.

 

When I try to map the phone number using


Set-CsOnlineApplicationInstance -Identity VySdRouting@vy.no -ApplicationId "11cd3e2e-fccb-42ad-ad00-878b93575e07"-DisplayName "Vy SD Routing Resource Account" -OnpremPhoneNumber "‪+48588826676‬"

 

I get error

The application endpoint was not found in Active Directory.
+ CategoryInfo : NotSpecified: (:) [Set-CsOnlineApplicationInstance], ApplicationInstanceManagementException
+ FullyQualifiedErrorId : Microsoft.Rtc.Management.Hosted.PlatformService.ApplicationInstance.ApplicationInstanceManagementException,Microsoft.Rtc.Management.Hosted
.PlatformService.ApplicationInstance.SetCsOnlineApplicationInstanceCmdlet
+ PSComputerName : admin1e.online.lync.com

 

When I try to create a call queue:

New-CsCallQueue -Name "Vy SD Routing Call Queue" -RoutingMethod Attendant -AgentAlertTime 60 -AllowOptOut $true

 

It seems that it is no longer possible

Your tenant is disabled for this service. You are not permitted to use this cmdlet.
+ CategoryInfo : NotSpecified: (:) [New-CsCallQueue], OnlineCmdletException
+ FullyQualifiedErrorId : Unspecified,Microsoft.Rtc.Management.Hosted.CallQueue.NewCsCallQueueCmdlet
+ PSComputerName : admin1e.online.lync.com

 

Are there any temporary/permanent changes for those functionalities, or is it something I do completely wrong?

 

PS I am quite green to this setup, Urgent change that needs to be done due to Covid-19.

 

Regards

Krzysztof

 

    • krzkal's avatar
      krzkal
      Copper Contributor

      ChrisHoardMVP That was indeed very helpful. Thank you very much.

       

      I think I will be able to crack it further, there is just one more thing that seems kind of strange to me:

      Both Telephone Number and Resource Account are in the same UsageLocation PL

      Yet, when I try to map the tel to res.acc. I get a UsageLocation mismatch error:

      CsOnlineVoiceApplicationInstance -Identity "RoutingQueue@vy.no" -TelephoneNumber +485887845654

      The Telephone Number assignment failed.  The country of the user’s Usage Location NO and the country of the Telephone Number PL do not match.

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

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

          + PSComputerName        : admin1e.online.lync.com

       

      I have no clue, I have checked it several times - they are marked as UsageLocation PL, both.

       

      Could it be because of domain/upn that is NO?

      • krzkal's avatar
        krzkal
        Copper Contributor

        I have solved the issue

         

        The problem was mostly timing - it takes time for everything to sync these days. Maybe not simple configuration tasks but certainly accounts creation, license assignment did take very long time.

         

        Those error msgs I got were slightly misleading, but I finally got it...

         

        If you face similar issue, please follow the link shared by Christopher and give it some time... everything works much faster and more intuitive through Powershell... yet, you will be forced to wait.

         

         

Resources