Azure VM cannot detect IoT board serial com port?

Nguyen Cong Tu 0 Reputation points
2023-10-10T09:08:57.52+00:00

Hi,

We are testing AVD for programming IoT Boards. AVD created have setup to allows all drives and comports connected to local machine. I have a Arduino UNO R3 board using Arduino IDE 2.2.1 to program and a Tiva board using Visual Code Studio. The boards connected to local machine via USB port and was detected in local machine device manager but the AVD remote from RDP cannot show the port. We had to use a third party solution to create a virtual comport to map the physical serial comport which is connected to the boards. Is there any other way for Azure VDI to connect to these physical com port for IoT solution Programming? Thanks.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,133 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 13,786 Reputation points
    2023-10-12T13:59:37.9533333+00:00

    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.

    0 comments No comments