0

I have written code to programmatically add new IoT devices to my Iot Hub. Using the Azure Portal it's possible to set a parent device for an Iot Device.

Setting parent device on Azure portal

Looking at the documentation and source code on GitHub for the azure-sdk-for-net I don't see away to set a parent device while creating a new device or for setting the parent device on an existing device.

Is there an API for setting the parent device on IoT devices?

gerfen
  • 3
  • 2

1 Answers1

1

we have it available in the public-preview branch of the C# SDK. For reference, this is the commit.

Yi Zhong - MSFT
  • 306
  • 2
  • 7
  • Thanks! Exactly what I was looking for. Updating to the latest public preview and setting the Scope property on my newly created device did the trick. – gerfen Apr 02 '19 at 00:27