Microsoft has put up an informative article in Microsoft Docs regarding all requirements and deployment options for MS teams in VDI environments, such as Microsoft RDS and Citrix Virtual Apps and Desktops.
It is important to note that MS Teams can be deployed in either per-user or per-machine mode. In the case of VDI computers the per-machine mode is preferred. You can deploy the Teams desktop app for VDI using a per-machine installation or per-user installation using the MSI package. Deciding on which approach to use depends on whether you use a persistent or non-persistent setup and the associated functionality needs of your organization. For a dedicated persistent setup, either approach would work. However, for a non-persistent setup, per-machine installation is required for Teams to work efficiently.
The following command must be used to properly deploy MS Teams in the per-user mode:
msiexec /i <path_to_msi> /l*v <install_logfile_name> ALLUSERS=1
The following command must be used to properly deploy MS Teams in the per-machine mode:
msiexec /i <path_to_msi> /l*v <install_logfile_name> ALLUSER=1 ALLUSERS=1
The following command uninstalls MS Teams msi from the server:
msiexec /passive /x <path_to_msi> /l*v <uninstall_logfile_name>
Important note #
The above examples also use the ALLUSERS=1 parameter. When you set this parameter, Teams Machine-Wide Installer appears in Programs and Features in Control Panel and in Apps & features in Windows Settings for all users of the computer. All users can then uninstall Teams if they have admin credentials. It’s important to understand the difference between ALLUSERS=1 and ALLUSER=1. The ALLUSERS=1 parameter can be used in non-VDI and VDI environments and the ALLUSER=1 parameter is used only in VDI environments to specify a per-machine installation.