author | description | ms.topic | ms.date | ms.author |
---|---|---|---|---|
baanders |
include file for Azure Digital Twins - model instructions for command line tutorial |
include |
3/5/2021 |
baanders |
-
Update the version number, to indicate that you are providing a more-updated version of this model. Do this by changing the 1 at the end of the
@id
value to a 2. Any number greater than the current version number will also work. -
Edit a property. Change the name of the
Humidity
property to HumidityLevel (or something different if you want. If you use something different than HumidityLevel, remember what you used and continue using that instead of HumidityLevel throughout the tutorial). -
Add a property. Underneath the
HumidityLevel
property that ends on line 15, paste the following code to add aRoomName
property to the room::::code language="json" source="~/digital-twins-docs-samples/models/Room.json" range="16-20":::
-
Add a relationship. Underneath the
RoomName
property that you just added, paste the following code to add the ability for this type of twin to formcontains
relationships with other twins::::code language="json" source="~/digital-twins-docs-samples/models/Room.json" range="21-24":::
When you are finished, the updated model should match this:
:::code language="json" source="~/digital-twins-docs-samples/models/Room.json":::
Make sure to save the file before moving on.