You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: includes/digital-twins-cli.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,34 +3,34 @@ author: baanders
3
3
description: include file for Azure Digital Twins - set up CLI and the IoT extension
4
4
ms.service: azure-digital-twins
5
5
ms.topic: include
6
-
ms.date: 1/18/2022
6
+
ms.date: 03/07/2025
7
7
ms.author: baanders
8
8
---
9
9
10
10
### Set up CLI session
11
11
12
-
To start working with Azure Digital Twins in the CLI, the first thing to do is log in and set the CLI context to your subscription for this session. Run these commands in your CLI window:
12
+
To start working with Azure Digital Twins in the CLI, the first thing to do is sign in and set the CLI context to your subscription for this session. Run these commands in your CLI window:
13
13
14
14
```azurecli-interactive
15
15
az login
16
16
az account set --subscription "<your-Azure-subscription-ID>"
17
17
```
18
18
19
19
> [!TIP]
20
-
> You can also use your subscription name instead of the ID in the command above.
20
+
> You can also use your subscription name instead of the ID in the previous command.
21
21
22
-
If this is the first time you've used this subscription with Azure Digital Twins, run this command to register with the Azure Digital Twins namespace. (If you're not sure, it's ok to run it again even if you've done it sometime in the past.)
22
+
If you're using this subscription with Azure Digital Twins for the first time, run the following command to register with the Azure Digital Twins namespace. (If you're not sure, it's ok to run it again even if you ran it sometime in the past.)
23
23
24
24
```azurecli-interactive
25
25
az provider register --namespace 'Microsoft.DigitalTwins'
26
26
```
27
27
28
-
Next you'll add the [Microsoft Azure IoT Extension for Azure CLI](/cli/azure/service-page/azure%20iot?view=azure-cli-latest&preserve-view=true), to enable commands for interacting with Azure Digital Twins and other IoT services. Run this command to make sure you have the latest version of the extension:
28
+
Next you add the [Microsoft Azure IoT Extension for Azure CLI](/cli/azure/service-page/azure%20iot?view=azure-cli-latest&preserve-view=true), to enable commands for interacting with Azure Digital Twins and other IoT services. Run this command to make sure you have the latest version of the extension:
29
29
30
30
```azurecli-interactive
31
31
az extension add --upgrade --name azure-iot
32
32
```
33
33
34
-
Now you are ready to work with Azure Digital Twins in the Azure CLI.
34
+
Now you're ready to work with Azure Digital Twins in the Azure CLI.
35
35
36
-
You can verify this by running `az dt --help` at any time to see a list of the top-level Azure Digital Twins commands that are available.
36
+
You can verify this status by running `az dt --help` at any time to see a list of the top-level Azure Digital Twins commands that are available.
0 commit comments