I want to connect my Android device to Azure VM with Visual Studio so I can debug and deploy an app. I created a VM by using a template that includes VS. On the RDP file, I edited settings so that all ports are redirected to the VM. This works fine with hard drives, but I can't get my Android device to show on the VM. Consequently, VS isn't aware of the device. USB debugging on the device and developer mode on the Win10 VM are enabled.
https://stackoverflow.com/a/29611391/812582
I checked all boxes on the above screenshot.
Are there any tricks I need to do to get this working?
Establish a connection between the device and the VM USB: Select VM > Removable Devices and select your mobile device. Alternatively, you can select the device from the corner of the VM window. A USB connectivity dialog box is displayed.
We at Apps4Rent helps you deploy Android Visual Studio Emulator on Azure. Tested by the Apps4rent engineers, the Android Visual Studio runs perfectly fine with Android OS when installed on Azure Cloud.
Click on the green +Create a resource button in the left hand navigation of the Azure Portal, then type Visual Studio 2019 into the Search the marketplace textbook, and press Enter. On the Everything search results, click on the Visual Studio 2019 on Windows Server 2016 (x64) marketplace image.
According to your description, based on my understanding, it sounds like you want to map the Android device host USB to the remote Win10 VM over network for implementing remote debug.
There are some device driver software which can help you access remote USB device via USB over network
. Meanwhile, I searched an existing SO thread Using remote host's USB port as local USB (Linux and Win) is very similar with your needs, but the USB/IP
project be mentioned in the thread seems to be not suitable for your scenario which is between two Windows OS.
Suggest that try to use some business software like USB over network
if you will.
Hope it helps. Any concern, please feel free to let me know.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With