Let's follow the following steps to use the device twin operation:
Store the device metadata:
var patch = new { properties = new { desired = new { deviceConfig = new { configId = Guid.NewGuid().ToString(), DeviceOwner = "yatish", latitude = "17.5122560", longitude = "70.7760470"
} }, reported = new { deviceConfig = new { configId = Guid.NewGuid().ToString(), DeviceOwner = "yatish", latitude = "17.5122560", longitude = "70.7760470"
} } }, tags = new { location = new { region = "US", plant = "Redmond43" } }