Please refer to the sample over here which you can use to generate a SAS token for IoT Hub using Python.
Create SAS Token using Python
Vishruti Pawar
21
Reputation points
I would like to know if it is possible to generate SAS Token for Azure IoT Hub using Python scirpt.
Also I would like to know what is the maximum expiry time for SAS Token if generated through the Azure Portal.
Please guide me through this, and let me know how can I create SAS Token using proramming.
Accepted answer
-
Saurabh Sharma 23,816 Reputation points Microsoft Employee
2020-05-20T21:49:33.973+00:00