Hi @Nguyen Cong Tu Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.
The behavior you see is expected. By default, Azure Virtual Desktop (AVD) does not support USB redirection for serial ports. This means that you cannot directly connect to a physical serial port on your local machine from an AVD session. However, you can configure device redirection for your Azure Virtual Desktop environment allows you to use printers, USB devices, microphones, and other peripheral devices in the remote session. Some device redirections require changes to both Remote Desktop Protocol (RDP) properties and Group Policy settings.
Please look into the Customize Remote Desktop Protocol (RDP) properties for a host pool for information on different supported RDP properties and configurations. To enable COM port redirection you would need the following configurations.
-
redirectcomports:i:1
enables COM port redirection. -
redirectcomports:i:0
disables COM port redirection.
Please also look into Port redirection and Other redirection (devices, etc.) limitations that apply to RDP client.
Hope this helps. Please let us know if you run into any additional issues or need further assistance.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.