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
Just found the way to update desired tags.
RegistryManager registryManager = RegistryManager.CreateFromConnectionString(connectionString);
var twin = await registryManager.GetTwinAsync(device.Id);
var patch = "{ \"properties\": { \"desired\": { \"configVersion\" : 3.1 } } }"; //json string
await registryManager.UpdateTwinAsync(device.Id, tags, twin.ETag);