question

ShashankKaushik-0318 avatar image
0 Votes"
ShashankKaushik-0318 asked ShashankKaushik-0318 commented

Azure IOT Hub SDK - How to create standard and layered deployments for IOT Edge Devices using IOT Hub SDK?

Hi ,

I am trying to build a cloud web application which can do below tasks-:

  1. Create Azure IOT Edge Devices on IOT Hub using IOT Hub SDK.

  2. Create Standard and Layered Deployment for the target devices using IOT Hub SDK.

I was able to accomplish the first task using the RegistryManager API in IOT hub SDK.

But I am not able to find any sample SDK or API via which I can write code (in JAVA) to create deployments for IOT Edge Devices.

Can you please help me out here if, is there any SDK or API available to accomplish my second task?

I do checked the documents suggesting to do the same thing via Azure CLI, Azure Portal and Visual Studio Code.
Deploy and monitor IoT Edge modules at scale using Azure Portal using below link.
https://docs.microsoft.com/en-us/azure/iot-edge/how-to-deploy-at-scale?view=iotedge-2020-11

I want to accomplish the same thing using any SDK or API provided.
Please let me know if the same is available.

Thanks In Advance!

Regards
Shashank





azure-iot-hubazure-iot-edgeazure-iot-sdk
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SandervandeVelde42 avatar image
1 Vote"
SandervandeVelde42 answered ShashankKaushik-0318 commented

Hello @ShashankKaushik-0318 ,

this is a good question!

I have worked with the Azure IoT Hub Rest API which you want to use for this. Microsoft does not provide a higher level API (written in C#, Java, etc.) at this moment.

You probably want to use this Create or Update Configuration API.

Please verify this is working on both 'direct internet connected IoT devices' and Edge devices.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @SandervandeVelde42 . I was able to check some example of the API use cases like that. I think i will be able to use these API's to make some custom web app solution for cloud.

0 Votes 0 ·