Administrator

Recurring Operation: Create Address

An address is an entity in AnywhereNow that can be used to receive communications. To receive audio calls via Microsoft Teams, such an address should be created. This address can be used to initiate a phone call via Microsoft Teams. Optionally, if a phone number is assigned, this address can also be called from other, non-Microsoft Teams, devices.

In your Microsoft tenant, these addresses are called ‘Resource Accounts’.

Please follow below steps to create a Resource Account in your Microsoft Tenant, assign a license (and optionally a phone number) to this resource account, point the resource account to AnywhereNow, and finally configure an address in your AnywhereNow Tenant.

Create a Resource Account

  1. Open Windows PowerShell or PowerShell (no Elevated Permissions are needed)

    1. Make sure to use 64-bit version of PowerShell
  2. Run the following PowerShell command to login to Microsoft Teams

    Copy
    PowerShell
    Connect-MicrosoftTeams
  3. Login with a Microsoft User Account that has either one of these permissions

    1. Global Administrator;
    2. Teams Administrator; or
    3. Teams Communications Administrator

    To learn how to assign user roles with Azure Active Directory please visit:
    Associate or add an Azure subscription to your Microsoft Entra tenant | Microsoft Learn

  4. Run the following PowerShell command to create the resource account and point it to the back-end App Registration

    Please Note

    Replace username@domain.com and DisplayName with the UPN and displayname you provided when creating the resource account.

    Note

    Please select your matching regional PowerShell command.

    Copy
    PowerShell for Production NORA
    New-CsOnlineApplicationInstance -UserPrincipalName 'user@domain.com' -ApplicationId 'ddecbc1f-b83e-4725-8535-a0d2fe3e5369' -DisplayName "DisplayName"
    Copy
    PowerShell for Production EMEA
    New-CsOnlineApplicationInstance -UserPrincipalName 'user@domain.com' -ApplicationId '71240355-f973-44f0-af0c-f1fdd0275214' -DisplayName "DisplayName"
    Copy
    PowerShell for Preview
    New-CsOnlineApplicationInstance -UserPrincipalName 'user@domain.com' -ApplicationId 'fc323a43-fda2-4a68-9ee4-75961abd77a9' -DisplayName "DisplayName"
  5. Run the following PowerShell command to verify if the address is created and the Application Id is correct.

    Please note

    Replace username@domain.com with the actual username and domain you provided when creating the resource account.

    Copy
    PowerShell
    Get-CsOnlineApplicationInstance -Identity 'user@domain.com'
  6. Run to following PowerShell command to ensure the application instance is synced

    Please note:

    Replace username@domain.com with the actual username and domain you provided when creating the resource account.

    Note

    Please select your matching regional PowerShell command.

    Copy
    Production NORA PowerShell
    $objectId = (Get-CsOnlineApplicationInstance -Identity 'user@domain.com').ObjectId
    Sync-CsOnlineApplicationInstance -ObjectId $objectId -ApplicationId 'ddecbc1f-b83e-4725-8535-a0d2fe3e5369'
    Copy
    Production EMEA PowerShell
    $objectId = (Get-CsOnlineApplicationInstance -Identity 'user@domain.com').ObjectId
    Sync-CsOnlineApplicationInstance -ObjectId $objectId -ApplicationId '71240355-f973-44f0-af0c-f1fdd0275214'
    Copy
    Preview PowerShell
    $objectId = (Get-CsOnlineApplicationInstance -Identity 'user@domain.com').ObjectId
    Sync-CsOnlineApplicationInstance -ObjectId $objectId -ApplicationId 'fc323a43-fda2-4a68-9ee4-75961abd77a9'

Assign a license to your Resource Account

  1. Navigate to your Microsoft 365 admin center

  2. Click users

  3. Click active users

  4. Search in the active users list for the newly created resource account

  5. Open the user (by clicking the corresponding Display name)

  6. Click license and apps

  7. Assign a Microsoft Teams Phone Resource Account license (by checking the box in front of this license)

    Tip

    If you plan to use outbound calling to PSTN along with Calling Plans, you can now choose the appropriate Calling Plan license here.

  8. Click save changes

  9. Close the user detail page

  10. Open Windows PowerShell or PowerShell (no Elevated Permissions are needed)

    1. Make sure to use 64-bit version of PowerShell
  11. Run the following PowerShell command to login to Microsoft Teams

    Copy
    PowerShell
    Connect-MicrosoftTeams
  12. Login with a Microsoft User Account that has either one of these permissions

    1. Global Administrator;
    2. Teams Administrator; or
    3. Teams Communications Administrator

    To learn how to assign user roles with Azure Active Directory please visit:
    Add an existing Azure subscription to your tenant | Microsoft Learn

  13. Run the following PowerShell command to verify if the license is provisioned

    Please note:

    Replace username@domain.com with the actual username and domain you provided when creating the resource account.

    Copy
    PowerShell
    Get-CsOnlineUser -Filter {UserPrincipalName -eq 'username@domain.com'} | select UserPrincipalName, AssignedPlan, ProvisionedPlan

Optionally, assign a phone number

Warning

Even if you don't assign a phone number, you still need to complete the next steps. Continue here Create an Address in AnywhereNow

If you have an Session Border Controller connected to Microsoft Teams (either via Direct Routing or Operator connect) or you have acquired phone numbers from Microsoft directly, you can assign a phone number to this resource account.

This is only required if people should be able to call your Contact Center from any device using PSTN, or when Agents should be able to make outbound calls to PSTN on behalf of your Contact Center.

Tip

For more information see the Microsoft documentation on Set-CsPhoneNumberAssignment (MicrosoftTeamsPowerShell) | Microsoft Learn.

  1. Open Windows PowerShell or PowerShell (no Elevated Permissions are needed)

    1. Make sure to use 64-bit version of PowerShell
  2. Run the following PowerShell command to login to Microsoft Teams

    Copy
    PowerShell
    Connect-MicrosoftTeams
  3. Login with a Microsoft User Account that has either one of these permissions

    1. Global Administrator;
    2. Teams Administrator; or
    3. Teams Communications Administrator

    To learn how to assign user roles with Azure Active Directory please visit:
    Add an existing Azure subscription to your tenant | Microsoft Learn

  4. Run the following PowerShell command to assign a phone number to the resource account

    1. Provide the correct identity (username@domain.com)
    2. Provide the correct phone number
    3. Provide the correct phone number type
      1. CallingPlan
      2. DirectRouting
      3. OperatorConnect
    Copy
    PowerShell CallingPlan
    Set-CsPhoneNumberAssignment -Identity user@domain.com -PhoneNumber +1000000000 -PhoneNumberType CallingPlan
    Copy
    PowerShell DirectRouting
    Set-CsPhoneNumberAssignment -Identity user@domain.com -PhoneNumber +1000000000 -PhoneNumberType DirectRouting
    Copy
    PowerShell OperatorConnect
    Set-CsPhoneNumberAssignment -Identity user@domain.com -PhoneNumber +1000000000 -PhoneNumberType OperatorConnect
  5. Run the following PowerShell command to verify if the Phone Number is assigned successfully.

    Please note

    Replace username@domain.com with the actual username and domain you provided when creating the resource account.

    Copy
    PowerShell
    Get-CsOnlineApplicationInstance -Identity 'user@domain.com' | SELECT UserPrincipalName, PhoneNumber

Optionally, enable for outbound calling

Warning

Even if you don't enable for outbound calling, you still need to complete the next steps. Continue here Create an Address in AnywhereNow

While internal calls (i.e., calling colleagues within the same tenant) require no adjustments to the resource account, PSTN calls may necessitate additional licenses or configuration.

Using Microsoft Calling Plans

The resource account requires an additional Calling Plan license, this can be assigned in the same way as Assign a license to your Resource Account

For more information about the available licenses, see: Microsoft Calling Plans for Teams - Microsoft Teams

Using Microsoft Direct Routing or Operator Connect

To use outbound calling with Microsoft Direct Routing or Operator Connect, ensure that proper routing to the PSTN is configured. Typically, the existing Microsoft Teams Phone Resource Account license will suffice.

However, if your organization has restricted the Global Voice Routing Policy or if the resource account requires a specific Voice Routing Policy, these configurations must be made using PowerShell. For detailed instructions, see Annex 5: Assign Online Voice Routing Policy using PowerShell

Create an Address in AnywhereNow

The resource account has been created. However, if you would call it now from your Microsoft Teams client, the call would reach AnywhereNow, but since AnywhereNow is unaware how to handle this incoming call it will decline the call. In order for AnywhereNow to handle the call properly, both an Address as well as a Contact Center with the Address assigned should be configured. Let’s configure an Address first.

  1. Navigate to your:

    Note

    Please select your matching regional admin portal.

    AnywhereNow admin Portal (Production NORA)

    AnywhereNow admin Portal (Production EMEA)

    AnywhereNow admin Portal (Preview)

  2. Click addresses

  3. Click add new address

  4. Search for the resource account that you created earlier

  5. Hover over the result

  6. Click add

Next steps

Recurring Operation: Create Agent