USB Redirection - Azure VM does not detect a USB to Serial Converter

Vipeen Sekharan 30 Reputation points
2023-02-23T04:31:19.87+00:00

I am trying to plug in a USB to Serial converter cable to my personal laptop and detect it on Azure VM. I can see it under Device Manager > Ports (COM & LPT) > USB Serial Port (COM5) on my personal laptop. I can't see the same when I login to Azure VM.

I have already configured Redirection in Azure under Host pool > RDP Properites > Device redirection > Mostly all related ones (happy to verify if required)

On the VM, configured "Computer Configuration \ Administrative Templates \ Windows Components \ Remote Desktop Services \ Remote Desktop Session Host \ Device and Resource Redirection\ Do not allow supported Plug and Play device redirection" to disabled.

I can detect my mobile and any USB drive on the VM, just not a USB to Serial Converted.

Any assistance will be appreciated.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,261 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vipeen Sekharan 30 Reputation points
    2023-03-02T23:25:27.33+00:00

    Hi @Anonymous

    I think I have resolved the problem. We just missed a few steps.

    After setting the Group Policy on the user's local device, open an elevated Command Prompt and run the following command:

    gpupdate /force
    

    Next, make sure the USB device is compatible with Azure Virtual Desktop. To check compatibility:

    • Connect the USB device to local machine.
    • Run mstsc.exe to open the Remote Desktop client.
    • Select Show Options.
    • Select the Local Resources tab.
    • Under Local devices and resources, select More.
    • If device is compatible, it should appear under Other supported Remote FX USB devices. We can only use USB redirection on USB devices that appear in this list.

    After this, the VM was able to detect it under Device Manager.

    Just one drawback though, the VM keeps crashing frequently if we select many/all devices under 'More' option. Not sure why, but that's wierd.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.