When deploying Windows Virtual Desktop and Microsoft Teams, it is preferrable to install Teams into your desktop image using the machine wide installation option rather than each individual user having Teams installed within their profile.
The Teams MSI package can be downloaded from Microsoft using one of the following links:
If you are using “vanilla” Microsoft Windows Virtual Desktop you will find that the installer fails with the error “Installation has failed”.
This is because the installer looks for the presence of Citrix or VMWare VDI components by looking up the following registry keys
HKLM\Software\Citrix\PortICA
HKLM\Software\VMware,Inc.\VMware VDM\Agent
Create one of these registry keys then run the installation using this command.
msiexec /i “path_to_msi” ALLUSER=1