- Create Resource account for call queue and auto attendant. Basically this is the account which will be mapped to call queue Or auto-attendant and a phone number will be assigned to these resource accounts.
PS C:\>New-CsOnlineApplicationInstance -UserPrincipalName "RA_CQ@domain.com" -DisplayName "Test CQ" -ApplicationID "11cd3e2e-fccb-42ad-ad00-878b93575e07"
PS C:\>New-CsOnlineApplicationInstance -UserPrincipalName "RA_AA@domain.com" -DisplayName "Test AA" -ApplicationID "ce933385-9390-45d1-9512-c8d228074e07" - Assign Microsoft Team Phone Standard-Virtual user license to CQ or AA Resource accounts. In case you don’t want Call queues to receive call directly then assign the license only to Auto attendant Resource account.
PS C:\>Set-MsolUser -UserPrincipalName RA_CQ@domain.com -UsageLocation US
PS C:\>Set-MsolUser -UserPrincipalName RA_AA@domain.com -UsageLocation US
PS C:\>Set-MsolUserLicense -UserPrincipalName RA_CQ@domain.com -AddLicenses "CloudMechanics:PHONESYSTEM_VIRTUALUSER"
PS C:\>Set-MsolUserLicense -UserPrincipalName RA_AA@domain.com -AddLicenses "CloudMechanics:PHONESYSTEM_VIRTUALUSER" - Create call queue and add CQ Resource account to the CQ.
- Create Auto attendant and add AA resource account to the AA.
- Assign call queue to auto-attendant as voice app.
- Once License is assigned then we can assign the number to Resource account.