You can use the Horizon remote experience feature for Media Optimization for Microsoft Teams with the virtual desktops and remote apps provisioned from your Horizon Cloud on Microsoft Azure deployments. As described in the Horizon Remote Desktop Features and GPOs guide, this feature provides for Teams media processing to take place on the client machine instead of in the virtual desktop.
For Horizon Cloud on Microsoft Azure deployments, use of this feature requires pod manifest 2298.0 or later and Horizon Agents Installer (HAI) version of 20.2 or later. As of August 11, 2020, you can use Horizon Clients version 2006 and later to obtain use of this feature with virtual desktops provisioned from those pods. Refer to the information in the Horizon Remote Desktop Features and GPOs guide located at VMware Horizon Documentation.