Teams Voice: New-CsAutoAttendant add resource account

Jurgen Verhelst 326 Reputation points
2021-05-20T22:45:56.117+00:00

Hi,

In the TAC you can add a resource account to an Autoattendant.

Can we do this in Powershell too?

New-CsAutoAttendant -ResourceAccount someRA@keyman .com -Name $aaName -LanguageId $language -CallFlows @($afterHoursCallFlow) -TimeZoneId $tz -Operator $operator -DefaultCallFlow $callFlow -CallHandlingAssociations @($afterHoursCallHandlingAssociation)

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,627 questions
Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
615 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmyYang-MSFT 50,446 Reputation points Microsoft Vendor
    2021-05-21T08:50:42.573+00:00

    Hi @Jurgen Verhelst

    Could you try to see if this command works for you?

    $ResourceAccountId = (Get-CsOnlineUser "autoattendant@example.com").ObjectId  
    $AutoAttendant = (Get-CsAutoAttendant -NameFilter "Main Auto Attendant").Identity  
      
    New-CsOnlineApplicationInstanceAssociation -Identities @($ResourceAccountId) -ConfigurationId $AutoAttendant -ConfigurationType AutoAttendant  
       
    

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.