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/connect-to-cloud/tutorial-mqtt-bridge.md
+32-48Lines changed: 32 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: patricka
6
6
ms.service: azure-iot-operations
7
7
ms.subservice: azure-data-flows
8
8
ms.topic: tutorial
9
-
ms.date: 11/25/2024
9
+
ms.date: 01/07/2025
10
10
11
11
#CustomerIntent: As an operator, I want to understand how to create a bi-directional MQTT bridge to Azure Event Grid so that I can send and receive messages between devices and services.
12
12
---
@@ -512,62 +512,26 @@ When you publish to the `tutorial/local` topic on the local Azure IoT Operations
512
512
513
513
## Deploy MQTT client
514
514
515
-
To verify the MQTT bridge is working, deploy an MQTT client to the same namespace as Azure IoT Operations. In a new file named `client.yaml`, specify the client deployment:
516
-
517
-
<!-- TODO: put this in the explore-iot-operations repo? -->
515
+
To verify the MQTT bridge is working, deploy an MQTT client to the same namespace as Azure IoT Operations.
518
516
519
517
# [Bicep](#tab/bicep)
520
518
521
-
Currently, bicep doesn't apply to deploy MQTT client.
519
+
Currently, Bicep doesn't apply to deploy MQTT client.
522
520
523
521
# [Kubernetes (preview)](#tab/kubernetes)
524
522
525
-
```yaml
526
-
apiVersion: v1
527
-
kind: ServiceAccount
528
-
metadata:
529
-
name: mqtt-client
530
-
namespace: azure-iot-operations
531
-
---
532
-
apiVersion: v1
533
-
kind: Pod
534
-
metadata:
535
-
name: mqtt-client
536
-
# Namespace must match MQTT broker BrokerListener's namespace
537
-
# Otherwise use the long hostname: aio-broker.azure-iot-operations.svc.cluster.local
538
-
namespace: azure-iot-operations
539
-
spec:
540
-
# Use the "mqtt-client" service account from above
541
-
# Otherwise create it with `kubectl create serviceaccount mqtt-client -n azure-iot-operations`
Client $server-generated/0000aaaa-11bb-cccc-dd22-eeeeee333333 received PINGRESP
607
+
```
624
608
625
609
Here, you see the messages are published to the local Azure IoT Operations broker to the `tutorial/local` topic, bridged to Event Grid MQTT broker, and then bridged back to the local Azure IoT Operations broker again on the `tutorial/cloud` topic. The messages are then delivered to the subscriber. In this example, the round trip time is about 80 ms.
0 commit comments