Skip to content

Commit 25ddb0e

Browse files
committed
Fix dotnet error and clarify instructions
1 parent 467f446 commit 25ddb0e

9 files changed

+28
-10
lines changed

articles/iot-hub/quickstart-control-device-dotnet.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ A device must be registered with your IoT hub before it can connect. In this qui
6363

6464
```azurecli-interactive
6565
az extension add --name azure-cli-iot-ext
66-
az iot hub device-identity create --hub-name {YourIoTHubName}--device-id MyDotnetDevice
66+
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyDotnetDevice
6767
```
6868
69+
If you choose a different name for your device, update the device name in the sample applications before you run them.
70+
6971
1. Run the following command to get the _device connection string_ for the device you just registered:
7072
7173
```azurecli-interactive
72-
az iot hub device-identity show-connection-string --hub-name {YourIoTHubName} --device-id MyJavaDevice --output table
74+
az iot hub device-identity show-connection-string --hub-name {YourIoTHubName} --device-id MyDotnetDevice --output table
7375
```
7476
7577
Make a note of the device connection string, which looks like `Hostname=...=`. You use this value later in the quickstart.

articles/iot-hub/quickstart-control-device-java.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ A device must be registered with your IoT hub before it can connect. In this qui
7171

7272
```azurecli-interactive
7373
az extension add --name azure-cli-iot-ext
74-
az iot hub device-identity create --hub-name {YourIoTHubName}--device-id MyJavaDevice
74+
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyJavaDevice
7575
```
7676
77+
If you choose a different name for your device, update the device name in the sample applications before you run them.
78+
7779
1. Run the following command to get the _device connection string_ for the device you just registered:
7880
7981
```azurecli-interactive

articles/iot-hub/quickstart-control-device-node.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ A device must be registered with your IoT hub before it can connect. In this qui
6363

6464
```azurecli-interactive
6565
az extension add --name azure-cli-iot-ext
66-
az iot hub device-identity create --hub-name {YourIoTHubName}--device-id MyNodeDevice
66+
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyNodeDevice
6767
```
6868
69+
If you choose a different name for your device, update the device name in the sample applications before you run them.
70+
6971
1. Run the following command to get the _device connection string_ for the device you just registered:
7072
7173
```azurecli-interactive

articles/iot-hub/quickstart-control-device-python.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ A device must be registered with your IoT hub before it can connect. In this qui
6767

6868
```azurecli-interactive
6969
az extension add --name azure-cli-iot-ext
70-
az iot hub device-identity create --hub-name {YourIoTHubName}--device-id MyPythonDevice
70+
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyPythonDevice
7171
```
7272
73+
If you choose a different name for your device, update the device name in the sample applications before you run them.
74+
7375
1. Run the following command to get the _device connection string_ for the device you just registered:
7476
7577
```azurecli-interactive

articles/iot-hub/quickstart-send-telemetry-dotnet.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,15 @@ A device must be registered with your IoT hub before it can connect. In this qui
5656

5757
```azurecli-interactive
5858
az extension add --name azure-cli-iot-ext
59-
az iot hub device-identity create --hub-name {YourIoTHubName}--device-id MyDotnetDevice
59+
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyDotnetDevice
6060
```
6161
62+
If you choose a different name for your device, update the device name in the sample applications before you run them.
63+
6264
1. Run the following command to get the _device connection string_ for the device you just registered:
6365
6466
```azurecli-interactive
65-
az iot hub device-identity show-connection-string --hub-name {YourIoTHubName} --device-id MyJavaDevice --output table
67+
az iot hub device-identity show-connection-string --hub-name {YourIoTHubName} --device-id MyDotnetDevice --output table
6668
```
6769
6870
Make a note of the device connection string, which looks like `Hostname=...=`. You use this value later in the quickstart.

articles/iot-hub/quickstart-send-telemetry-ios.md

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ A device must be registered with your IoT hub before it can connect. In this qui
7979
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id myiOSdevice
8080
```
8181

82+
If you choose a different name for your device, update the device name in the sample applications before you run them.
83+
8284
1. Run the following command to get the _device connection string_ for the device you just registered:
8385

8486
```azurecli-interactive

articles/iot-hub/quickstart-send-telemetry-java.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ A device must be registered with your IoT hub before it can connect. In this qui
6464

6565
```azurecli-interactive
6666
az extension add --name azure-cli-iot-ext
67-
az iot hub device-identity create --hub-name {YourIoTHubName}--device-id MyJavaDevice
67+
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyJavaDevice
6868
```
6969
70+
If you choose a different name for your device, update the device name in the sample applications before you run them.
71+
7072
1. Run the following command to get the _device connection string_ for the device you just registered:
7173
7274
```azurecli-interactive

articles/iot-hub/quickstart-send-telemetry-node.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ A device must be registered with your IoT hub before it can connect. In this qui
5656

5757
```azurecli-interactive
5858
az extension add --name azure-cli-iot-ext
59-
az iot hub device-identity create --hub-name {YourIoTHubName}--device-id MyNodeDevice
59+
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyNodeDevice
6060
```
6161
62+
If you choose a different name for your device, update the device name in the sample applications before you run them.
63+
6264
1. Run the following command to get the _device connection string_ for the device you just registered:
6365
6466
```azurecli-interactive

articles/iot-hub/quickstart-send-telemetry-python.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ A device must be registered with your IoT hub before it can connect. In this qui
7474

7575
```azurecli-interactive
7676
az extension add --name azure-cli-iot-ext
77-
az iot hub device-identity create --hub-name {YourIoTHubName}--device-id MyPythonDevice
77+
az iot hub device-identity create --hub-name {YourIoTHubName} --device-id MyPythonDevice
7878
```
7979
80+
If you choose a different name for your device, update the device name in the sample application before you run it.
81+
8082
1. Run the following command to get the _device connection string_ for the device you just registered:
8183
8284
```azurecli-interactive

0 commit comments

Comments
 (0)