Skip to content

Commit 7a85301

Browse files
committed
Fixes
1 parent 631426a commit 7a85301

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

articles/iot-operations/manage-mqtt-broker/howto-test-connection.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ mosquitto_pub --host aio-broker --port 18883 --message "hello" --topic "world" -
6464

6565
The output should look similar to the following example:
6666

67-
```Output
67+
```output
6868
Client (null) sending CONNECT
6969
Client (null) received CONNACK (0)
7070
Client (null) sending PUBLISH (d0, q0, r0, m1, 'world', ... (5 bytes))
@@ -88,7 +88,7 @@ mosquitto_sub --host aio-broker --port 18883 --topic "world" --debug --cafile /v
8888
8989
The output should look similar to the following example:
9090

91-
```Output
91+
```output
9292
Client (null) sending CONNECT
9393
Client (null) received CONNACK (0)
9494
Client (null) sending SUBSCRIBE (Mid: 1, Topic: world, QoS: 0, Options: 0x00)
@@ -305,6 +305,14 @@ For example, to create a new broker listener with the `LoadBalancer` service typ
305305
1. Select **Create** to create the listener.
306306
1. Select **Create** to create the listener.
307307

308+
# [CLI](#tab/cli)
309+
310+
To create a new broker listener with service type `LoadBalancer`, use the following Azure CLI command.
311+
312+
```azurecli
313+
az iot ops broker listener port add --port 1883 --listener newlistener --in myinstance -g mygroup
314+
```
315+
308316
# [Bicep](#tab/bicep)
309317

310318
> [!CAUTION]
@@ -514,6 +522,14 @@ The reason that the MQTT broker uses TLS and service accounts authentication by
514522

515523
1. Select **Create** to create the listener.
516524

525+
# [CLI](#tab/cli)
526+
527+
Use the following Azure CLI command to add or replace an existing listener port. Provide values that reflect the terminal resource state:
528+
529+
```azurecli
530+
az iot ops broker listener port add --port 1883 --listener newlistener --in myinstance -g mygroup
531+
```
532+
517533
# [Bicep](#tab/bicep)
518534

519535
> [!CAUTION]

0 commit comments

Comments
 (0)