Have you tried exporting the device identities? https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-bulk-identity-mgmt#export-devices
Faster way of getting iot device Shared Access Keys in Azure IoT Hub?
TimM
26
Reputation points
We're looking to be able to retrieve a large number of IoT device access keys. We haven't been able to find a way to do this in any sort of reasonable timeframe.
Things we have tried:
- Get-AzIotHubDeviceConnectionString call for each device. This takes 2 - 3 seconds per device and isn't feasible for our use case.
- Get-AzIotHubDeviceConnectionString call for "all" devices (that is, without specifying a deviceid). It has a limitation of 1000 results, and even if there is a way to work around this, it still can take almost 10 minutes to receive the results.
- Using 'az iot hub device-identity connection-string show' had similar response times to Get-AzIotHubDeviceConnectionString.
Does anyone know of a way to retrieve shared access keys for iot devices in a short period of time?
Azure Internet of Things
Azure Internet of Things
A category of Azure services for internet of things devices.
425 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,274 questions
Accepted answer
-
jlian-MSFT 101 Reputation points Microsoft Employee Moderator
2021-07-27T17:22:57.897+00:00