Forum Discussion
kai_wessels
Oct 22, 2020Copper Contributor
Assign Resource Account to CallQueue or AutoAttendant (Powershell)
Hi Everyone, i have created a provisioning Script for the creation of the resource accounts / callqueue / autoattendant but the final steps 7&8 (assign resource account) is missing. I have found ...
jangliss
Feb 08, 2021Iron Contributor
I'm not sure the previous response to this is valid. The commands you're looking for are *-CsOnlineApplicationInstanceAssociation. Based on documentation, the command New-CsOnlineApplicationInstanceAssociation has been around since at least December 2018.
Basic usage would look like this:
$ResourceAccountId = (Get-CsOnlineUser "autoattendant@example.com").ObjectId
$AutoAttendant = (Get-CsAutoAttendant -NameFilter "Main Auto Attendant").Identity
New-CsOnlineApplicationInstanceAssociation -Identities @($ResourceAccountId) -ConfigurationId $AutoAttendant -ConfigurationType AutoAttendant
Same for Call Queues except using Get-CsCallQueue and changing the ConfigurationType to CallQueue.
- Henry MoralesJun 12, 2021Brass Contributor
Worked great. I'm used to using the GUI but this is a much faster method and used when Microsoft was rolling back an update.