In order to complete the steps below, you must have Global Administrator role.
The same Bot can be whitelisted in multiple Azure tenants, and can be used for multiple compliance policies.
The registration consists of the following steps:
Step 1 - Download and install PowerShell 5.1.
Step 2 - Open PowerShell as administrator.
Step 3 - Install the NuGet package provider module by running the following command:
Step 4 - Install the Microsoft Teams module by running the following command:
Accessing the tenant via PowerShell
Separate Azure tenants for the recording provider (bot) and for the Teams environment to record
In the case when the recorded Teams environment and the recording bot are in separate Azure tenants, the following steps have to be done in the Teams tenant.
Step 1 - Open PowerShell as administrator.
Step 2 - Execute the following command:
Step 3 - Execute the following command:
Step 4 - A login prompt will show up. Provide the user credentials.
Registering the bot as a Teams application
Step 5 - Execute the following command. At the <UPN> part, provide a unique UPN for the recording bot, for example, firstname.lastname@example.org. Provide something at the <displayName> part, it can be anything. Replace the <botAppId> part with the application ID from the previous section (Creating the Microsoft Teams Recording Bot - Step 13).
Step 6 - In the command results, take note of the ObjectId. It will be needed later.
Step 7 - Execute the following command. Replace the <ObjectId> part with the ID from the results of the previous command.
Step 8 (Optional - 2N recording) - If 2N recording will be configured, then repeat the steps 5-7 for the second bot registration also. Take a note of the second ObjectId.