Skip to content

Commit edd8edb

Browse files
committed
populate state store article.
Signed-off-by: Ryan Winter <[email protected]>
1 parent 33f6dba commit edd8edb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Populate the state store
3+
description: Learn how to populate the state store with data
4+
author: PatAltimore
5+
ms.author: patricka
6+
ms.subservice: azure-mqtt-broker
7+
ms.topic: how-to
8+
ms.custom:
9+
ms.date: 11/8/2024
10+
ms.service: azure-iot-operations
11+
---
12+
13+
# Populating the state store
14+
15+
The state store runs on the cluster and is accessed via MQTT broker using the MQTT5 protocol. There are currently two main ways of using the state store:
16+
17+
1. Using the Azure IoT Operations SDKs to interact with the state store in your edge applications.
18+
1. Using the CLI tool to push data into the state store from an external computer.
19+
20+
## Azure IoT Operations SDKs
21+
22+
The SDKs are the recommended way to interact with the state store when developing edge applications. To read more about the SDKs and their available functions, refer to [Azure IoT Operations SDKs](overview-sdk-apps.md).
23+
24+
## State store CLI
25+
26+
The state store CLI tool allows you to interact with the state store from a shell running on any machine.
27+
28+
1. Generate an x.509 certificate chain for authenticating with MQTT broker
29+
1. Create a `BrokerAuthentication` using x.509 certificates
30+
1. Create a `BrokerListener` as a LoadBalancer to enable off-cluster access
31+
1. Open ports so allow access to the MQTT broker.
32+
33+
For instructions on downloading and using the tool, refer to [state store CLI GitHub](https://github.com/Azure-Samples/explore-iot-operations/tree/main/tools/state-store-cli).
34+

0 commit comments

Comments
 (0)