I am trying to create an IoT device at IOT HUB using python based azure-iot sdk.
At present, I can create an IOT device(using AZ CLI or through dashboard) and can link it with my soft client(using connection string).
But would like to implement the creation of IoT device logic programmatically, for which, I found that this could be done though Azure Rest API:
https://docs.microsoft.com/en-us/rest/api/iothub/service/createorupdatedevice
One of the requirement is authentication through SAS. I further investigated to find out that the azure IoT sdk (for .net) exposes SharedAccessSignatureBuilder that could help in this regard:
My questions:
- Am I going in the correct direction to solve it, or is there any other way around.
- Do we have any SharedAccessSignatureBuilder for Python or Java? I checked but couldn't find one.