You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-operations/manage-mqtt-broker/howto-configure-brokerlistener.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ To view or edit the default listener:
57
57
58
58
# [Bicep](#tab/bicep)
59
59
60
-
You shouldn't modify the default listener using Bicep.
60
+
Be careful when modifying the default listener using Bicep. Don't change the existing settings. Instead, add more ports to the default listener. The following example shows how to add a new port to the default listener.
// Add more ports here, like the following example
112
+
{
113
+
port: 1884
114
+
protocol: 'Mqtt'
115
+
}
112
116
]
113
117
}
114
118
}
@@ -159,18 +163,20 @@ spec:
159
163
rotationPolicy: Always
160
164
```
161
165
162
-
To learn more about the default BrokerAuthentication resource linked to this listener, see [Default BrokerAuthentication resource](howto-configure-authentication.md#default-brokerauthentication-resource).
163
-
164
-
### Update the default broker listener
165
-
166
-
The default *BrokerListener* uses the service type *ClusterIp*. You can have only one listener per service type. If you want to add more ports to service type *ClusterIp*, you can update the default listener to add more ports. For example, you could add a new port 1883 with no TLS and authentication off with the following kubectl patch command:
166
+
To add a new port 1883 with no TLS and authentication off to the default listener, use the `kubectl patch` command:
To avoid disrupting internal Azure IoT Operations communication, keep the default listener unchanged and dedicated for internal use. For external communication, [create a new listener](#create-new-broker-listeners).
177
+
178
+
Since the default *BrokerListener* uses the service type *ClusterIp*, and you can have [only one listener per service type](#service-type), add more ports to the default listener without changing any of the existing settings if you need to use the *ClusterIp* service.
179
+
174
180
## Create new broker listeners
175
181
176
182
To create a new listener, you need to specify the following settings:
0 commit comments