Skip to content

Commit 631426a

Browse files
committed
Add CLI command for nodeport
1 parent 0b570c4 commit 631426a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: sethmanheim
55
ms.author: sethm
66
ms.subservice: azure-mqtt-broker
77
ms.topic: how-to
8-
ms.date: 11/06/2024
8+
ms.date: 02/03/2026
99

1010
#CustomerIntent: As an operator or developer, I want to test MQTT connectivity with tools that I'm already familiar with to know that I set up my MQTT broker correctly.
1111
ms.service: azure-iot-operations
@@ -135,6 +135,16 @@ For example, to create a new broker listener with the `NodePort` service type, s
135135
1. Add TLS settings to the listener by selecting **TLS** > **Add** on the port. This step isn't required if you don't need TLS for testing. For more information, see [BrokerListener](howto-configure-brokerlistener.md).
136136
1. Select **Create** to create the listener.
137137

138+
# [CLI](#tab/cli)
139+
140+
To create a new broker listener with the `NodePort` service type, use the following Azure CLI command.
141+
142+
```azurecli
143+
az iot ops broker listener port add
144+
```
145+
146+
Optionally, you can use the `--add-insecure-listener` flag to create a listener without authentication and TLS for testing purposes only. For more information, see `az iot ops broker listener port add --help`.
147+
138148
# [Bicep](#tab/bicep)
139149

140150
> [!CAUTION]

0 commit comments

Comments
 (0)