Search code examples
azure-iot-hubazure-iot-edgeazure-iot-hub-device-management

REST API Endpoint to generate SAS token for Edge Devices in Azure IoTHub


What is REST API endpoint for the following command ?

az iot hub generate-sas-token -n myIoTHub -d myDevice --du 630720

Solution

  • There is no REST API endpoint for that command. It's a computation that you can implement yourself, it's described here and comes with sample code.

    The command you referenced does it this way