Skip to content

Commit 33035dd

Browse files
Merge pull request #296527 from DENKEN02MSFT/ADT_Row24_ContextUpdate
Updated az dt command to use updated @context value
2 parents 76324f9 + 676bbb0 commit 33035dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/digital-twins-thermostat-model-upload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The model looks like this:
1313
To upload this model to your twins instance, run the following Azure CLI command, which uploads the previous model as inline JSON. You can run the command in [Azure Cloud Shell](../articles/cloud-shell/overview.md) in your browser (use the Bash environment), or on your machine if you have the [CLI installed locally](/cli/azure/install-azure-cli). There's one placeholder for the instance's host name (you can also use the instance's friendly name with a slight decrease in performance).
1414

1515
```azurecli-interactive
16-
az dt model create --dt-name <instance-hostname-or-name> --models '{ "@id": "dtmi:contosocom:DigitalTwins:Thermostat;1", "@type": "Interface", "@context": "dtmi:dtdl:context;2", "contents": [ { "@type": "Property", "name": "Temperature", "schema": "double" } ]}'
16+
az dt model create --dt-name <instance-hostname-or-name> --models '{ "@id": "dtmi:contosocom:DigitalTwins:Thermostat;1", "@type": "Interface", "@context": "dtmi:dtdl:context;3", "contents": [ { "@type": "Property", "name": "Temperature", "schema": "double" } ]}'
1717
```
1818

1919
>[!NOTE]

0 commit comments

Comments
 (0)