Skip to content

Commit ec91a54

Browse files
committed
Minor fixes - caught a cut & paste error, tweaked language
1 parent 20e52ae commit ec91a54

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/iot-hub/module-twin-getstarted-cli.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This article shows you how to create an Azure CLI session in which you:
3434

3535
* An IoT Hub. Create one with the [CLI](iot-hub-create-using-cli.md) or the [Azure portal](iot-hub-create-through-portal.md).
3636

37-
* Make sure that port 8883 is open in your firewall. The device sample in this article uses MQTT protocol, which communicates over port 8883. This port can be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
37+
* Make sure that port 8883 is open in your firewall. The samples in this article use MQTT protocol, which communicates over port 8883. This port can be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](iot-hub-mqtt-support.md#connecting-to-iot-hub).
3838

3939
## Prepare the Cloud Shell
4040

@@ -91,23 +91,24 @@ To create a device identity and module identity:
9191
9292
*{HubName}*. The name of your IoT hub.
9393
94-
*{ModuleName}*. The name of your module.
94+
*{ModuleName}*. The name of your device's module.
9595
9696
```azurecli
97-
az iot hub device-identity create --device-id {DeviceName} --hub-name {HubName} --module-id {ModuleName}
97+
az iot hub module-identity create --device-id {DeviceName} --hub-name {HubName} \
98+
--module-id {ModuleName}
9899
```
99100
100101
## Update the module twin
101102
102-
Once a module identity is created, a module twin is implicitly created in IoT Hub. In this section, you use the CLI session to update a set of desired properties for the module twin associated with the module identity you created in the previous section.
103+
Once a module identity is created, a module twin is implicitly created in IoT Hub. In this section, you use the CLI session to update a set of desired properties on the module twin associated with the module identity you created in the previous section.
103104
104-
1. In the CLI session, run the [az iot hub module-twin update](/cli/azure/iot/hub#az-iot-hub-module-twin-update) command, replacing the following placeholders with their corresponding values. In this example, we're updating multiple desired properties.
105+
1. In the CLI session, run the [az iot hub module-twin update](/cli/azure/iot/hub#az-iot-hub-module-twin-update) command, replacing the following placeholders with their corresponding values. In this example, we're updating multiple desired properties on the module twin for the module identity we created in the previous section.
105106
106107
*{DeviceName}*. The name of your device.
107108
108109
*{HubName}*. The name of your IoT hub.
109110
110-
*{ModuleName}*. The name of your module.
111+
*{ModuleName}*. The name of your device's module.
111112
112113
```azurecli
113114
az iot hub module-twin update --device-id {DeviceName} --hub-name {HubName} \

0 commit comments

Comments
 (0)