# TPE Resource Account Creation

{% hint style="warning" %}
**This feature is in** [**private Preview**](https://cc.docs.landis.cloud/appendix/feature-states)
{% endhint %}

**TPE: Teams Phone Extensibility**

**Please use the latest Teams PowerShell module when running the following commands in step 4.**

{% hint style="info" %}
At least one resource account is required for each queue or IVR.
{% endhint %}

1. Navigate to Microsoft Teams admin center | Voice | Resource accounts | Add | Create resource account with type "Call Queue"

{% hint style="info" %}
After executing the PowerShell commands in step 4, the resource account type field will become blank. This is expected behavior and should not be altered.
{% endhint %}

2. Navigate to Microsoft 365 admin portal | Users | Active Users | Assign the resource account user a "Microsoft Teams Phone Resource Account" license
3. Assign a phone number to a queue/IVR (optional)

Navigate to Microsoft Teams admin center | Voice | Resource accounts | Select resource account | "Assign/unassign" button | Select the phone number type | Select or add the appropriate phone number | Save. (Do not assign the account to an auto Attendant/Call queue)

4. Connect to Teams PowerShell | Run the following commands for the data center location of your Landis Contact Center organization. After running the last command, copy the ObjectID GUID in the output. This will be used in the next step.

{% tabs %}
{% tab title="North America" %}

```
$Instance = Get-CsOnlineApplicationInstance -Identity "Resource Account Username"
```

```
Set-CsOnlineApplicationInstance -ApplicationId "8b9c66ba-f860-481e-aaf6-952d9187c57e" -AcsResourceId "431c1c5d-da69-4b21-92da-d2ef35d8eaf4" -Identity $Instance.ObjectId
```

```
Sync-CsOnlineApplicationInstance -ObjectId $Instance.ObjectId -ApplicationId "8b9c66ba-f860-481e-aaf6-952d9187c57e"
```

```
$Instance.ObjectId
```

*Note: Replace "Resource Account Username" in the first command with the UPN of the resource account created in step 3.*
{% endtab %}

{% tab title="EMEA" %}

```
$Instance = Get-CsOnlineApplicationInstance -Identity "Resource Account Username"
```

```
Set-CsOnlineApplicationInstance -ApplicationId "253679a4-b7b3-483b-bcdf-cc751ac7a9ee" -AcsResourceId "3e827200-4884-4e44-ab37-6eb112387abc" -Identity $Instance.ObjectId
```

```
Sync-CsOnlineApplicationInstance -ObjectId $Instance.ObjectId -ApplicationId "253679a4-b7b3-483b-bcdf-cc751ac7a9ee"
```

```
$Instance.ObjectId
```

*Note: Replace "Resource Account Username" in the first command with the UPN of the resource account created in step 3.*
{% endtab %}
{% endtabs %}

5. Navigate to Landis Contact Center portal | Queues & IVRs | Connectors | Resource accounts | Add&#x20;

* Enter a Name.&#x20;
* Paste the ObjectID GUID in the Object ID field.&#x20;
* Select the Interaction Object (Queue or IVR) that should be associated with the resource account.
* Enable AcsCalling. If this option is not displayed, please reach out to your Landis account executive to be enrolled in the private preview.
* Description, Phone Number, and User principal Name is optional, but recommended.

&#x20;       Select the Save button.

{% hint style="info" %}
This Resource Account record is a duplicate of the Microsoft Teams Resource Account. It determines to which Queue or IVR the call is routed.
{% endhint %}

{% hint style="warning" %}
The Microsoft Teams resource accounts are not automatically synced with Contact Center. When resource accounts are created or changed in Teams, they will need to be manually created or updated in Contact Center.
{% endhint %}
