Skip to content

Commit 0158439

Browse files
authored
Merge pull request #191647 from JimacoMS4/iot-hub-fix-cls-show-connection-string-hub-name-parameter
Change --name to --hub-name in all instances of az iot hub connection…
2 parents 8536d9d + 97b829e commit 0158439

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ You also need a _service connection string_ to enable the back-end service appli
8181
**YourIoTHubName**: Replace this placeholder below with the name you chose for your IoT hub.
8282
8383
```azurecli-interactive
84-
az iot hub connection-string show --policy-name service --name {YourIoTHubName} --output table
84+
az iot hub connection-string show --policy-name service --hub-name {YourIoTHubName} --output table
8585
```
8686

8787
Make a note of the service connection string, which looks like:

articles/iot-hub/tutorial-device-twins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ az group create --name tutorial-iot-hub-rg --location $location
6767
az iot hub create --name $hubname --location $location --resource-group tutorial-iot-hub-rg --partition-count 2 --sku F1
6868
6969
# Make a note of the service connection string, you need it later:
70-
az iot hub connection-string show --name $hubname --policy-name service -o table
70+
az iot hub connection-string show --hub-name $hubname --policy-name service -o table
7171
7272
```
7373

0 commit comments

Comments
 (0)