I have registered the devices in IoT and the client application (device) can update reported twin properties. Now, I have to update desired twin properties from back end applica
Another way of doing this is by updating the desired TwinCollection directly.
using (var manager = RegistryManager.CreateFromConnectionString("Your IoT Hub ConnectionString"))
{
var twin = await manager.GetTwinAsync("your device id");
twin.Properties.Desired["YourProperty"] = "some value";
await manager.UpdateTwinAsync(twin.DeviceId, twin, twin.ETag);
}