Skip to content

Commit 6880d09

Browse files
committed
schema registry init
1 parent de8c820 commit 6880d09

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Create message schemas
3+
description: Learn how to install schema registry on your cluster and create message schemas to use with dataflows.
4+
author: kgremban
5+
ms.author: kgremban
6+
ms.topic: how-to
7+
ms.date: 08/03/2024
8+
9+
#CustomerIntent: As an operator, I want to understand how I can use message schemas to filter and transform messages.
10+
---
11+
12+
# Create message schemas
13+
14+
Use schema registry to store and synchronize message schemas across the cloud and edge. Dataflows and other edge services use message schemas to filter and transform messages as they're routed across your industrial edge scenario.
15+
16+
## Create schema registry resources in Azure
17+
18+
1. Create a storage account with hierarchical namespace enabled.
19+
20+
```azurecli-interactive
21+
az storage account create -n <STORAGE_ACCOUNT_NAME> -g <RESOURCE_GROUP> --enable-hierarchical-namespace --sku Standard_LRS
22+
```
23+
24+
1. Create a schema registry resource.
25+
26+
```azurecli-interactive
27+
az iot ops schema registry create -n <SCHEMA_REGISTRY_NAME> --sa-resource-id <STORAGE_ACCOUNT_RESOURCE_ID> --registry-namespace <SCHEMA_REGISTRY_NAME> -g <RESOURCE_GROUP>
28+
```
29+
30+
## Install schema registry on your cluster
31+
32+
1. Install schema registry as part of Azure IoT Operations by using the `--sr-resource-id` parameter in the `az iot ops init` command. For example:
33+
34+
```azurecli
35+
az iot ops init --cluster <CLUSTER_NAME> -g <RESOURCE_GROUP> --sr-resource-id <SCHEMA_REGISTRY_RESOURCE_ID> -n <INSTANCE_NAME> --add-insecure-listener true
36+
```
37+
38+
1. Verify that schema registry pods are running by using the `kubectl get pods` command.
39+
40+
```bash
41+
kubectl get pods -n azure-iot-operations
42+
```
43+
44+
## Upload message schemas in the operations experience
45+
46+
TODO

articles/iot-operations/connect-to-cloud/overview-dataflow.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ The configuration is specified by using Kubernetes CRDs. Based on this configura
5959

6060
By using dataflows, you can efficiently manage your data paths. You can ensure that data is accurately sent, transformed, and enriched to meet your operational needs.
6161

62+
## Support for schema registry
63+
64+
Schema registry, a feature provided by Azure Device Registry Preview, is a synchronized repository in the cloud and at the edge. The schema registry stores the definitions of messages coming from edge assets, and then exposes an API to access those schemas at the edge. Southbound connectors like the OPC UA connector can create message schemas and add them to the schema registry or customers can upload schemas to the operations experience web UI.
65+
66+
Dataflows uses messages schemas at both the source and destination points. For sources, message schemas can work as filters to identify the specific messages that you want to capture for a dataflow. For destinations, message schemas help to transform the message into the format expected by the destination endpoint.
67+
68+
For more information, see [Define message schemas](./howto-schema-registry.md).
69+
6270
## Related content
6371

6472
- [Quickstart: Send asset telemetry to the cloud by using a dataflow](../get-started-end-to-end-sample/quickstart-upload-telemetry-to-cloud.md)

articles/iot-operations/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ items:
9595
href: connect-to-cloud/concept-dataflow-conversions.md
9696
- name: Enrich data
9797
href: connect-to-cloud/concept-dataflow-enrich.md
98+
- name: Create message schemas
99+
href: connect-to-cloud/howto-schema-registry.md
98100
- name: Manage dataflow profile
99101
href: connect-to-cloud/howto-configure-dataflow-profile.md
100102
- name: Manage layered network

0 commit comments

Comments
 (0)