Trying to search through Microsoft docs but I can't seem to find anything to suggest I can use RegistryManager.AddDeviceAsync()
to add an IoT Edge (Preview) device to IoT Hub.
This MS tutorial says you can pass the --edge-enabled
option to the CLI command az iot hub device-identity create -d edge001 -n blogDemoHub --edge-enabled
but how do I do this using the .NET SDK?
try the following:
await registryManager.AddDeviceAsync(new Device(deviceId) { Capabilities = new Microsoft.Azure.Devices.Shared.DeviceCapabilities() { IotEdge = true } });