Skip to content

Files

Latest commit

 

History

History
23 lines (16 loc) · 1.39 KB

digital-twins-tutorial-model-create.md

File metadata and controls

23 lines (16 loc) · 1.39 KB
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
  1. 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.

  2. 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).

  3. Add a property. Underneath the HumidityLevel property that ends on line 15, paste the following code to add a RoomName property to the room:

    :::code language="json" source="~/digital-twins-docs-samples/models/Room.json" range="16-20":::

  4. 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 form contains 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.