vscode-azure-iot-toolkit icon indicating copy to clipboard operation
vscode-azure-iot-toolkit copied to clipboard

Not all devices load when IoT Hub has many devices

Open rtheil opened this issue 4 years ago • 6 comments

Our production IoT Hub has many hundreds of devices in it. In the rare instance when we must push a deployment to a single edge device, we use this plugin to do so. The problem is that the list of devices doesn't contain all the devices in the hub. We use both edge and non-edge devices. Now we've reached a point where many devices do not show up, and we are unable to publish to a single device. Even using command palette we can't just type the name of the device to publish to because it's not in the list.

rtheil avatar Nov 16 '21 13:11 rtheil

Did you resolve this issue?

AleksandrLiakhavetsEPAM avatar Jan 06 '23 11:01 AleksandrLiakhavetsEPAM

@AleksandrLiakhavetsEPAM No. I've resorted to manually pushing deployments to devices using the azure command prompt.

rtheil avatar Jan 06 '23 16:01 rtheil

Related to this old issue in the previous extension : https://github.com/microsoft/vscode-azure-iot-tools/issues/20

The underlying problem appears to be the limit of 1000 devices.

I agree that in many situation you want to target a specific device and you already know its id.

Therefore, instead of having to browse through a huge list, the UI could offer a way to just type the id of the device and they do whatever you need to perform with it.

Delapouite avatar May 05 '23 07:05 Delapouite

I gave up. I use the az command now and have written a powershell script that does all the work for me. This extension is completely useless,

rtheil avatar May 05 '23 13:05 rtheil

The main goal of this extension is to provide an easy way to interact with hub devices while developing your solution, and it is not intended to be used in production with thousands of devices.

You should be able to use az iot to interact with specific devices, including edge.

rido-min avatar May 05 '23 13:05 rido-min

It's understandable that it's not a tool meant for production use, but we're beyond that now. We have 1153 devices in our development IoT hub, which was not the case when I originally opened this issue. This tool basically uses the az command to push a deployment to a device. It's just strange to justify the limit based on the idea that it's not meant for production. All this needs is the ability to just enter the deviceId outside of the list.

rtheil avatar May 05 '23 14:05 rtheil