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/concept-schema-registry.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how schema registry handles message schemas to work with Azur
4
4
author: kgremban
5
5
ms.author: kgremban
6
6
ms.topic: conceptual
7
-
ms.date: 09/23/2024
7
+
ms.date: 10/30/2024
8
8
9
9
#CustomerIntent: As an operator, I want to understand how I can use message schemas to filter and transform messages.
10
10
---
@@ -111,9 +111,31 @@ To upload an output schema, see [Upload schema](#upload-schema).
111
111
112
112
## Upload schema
113
113
114
-
Input schema can be uploaded in the operations experience portal as [mentioned previously](#input-schema). You can also upload a schema using a Bicep template.
114
+
Input schema can be uploaded in the operations experience portal as described in the [Input schema](#input-schema) section of this article. You can also upload a schema using the Azure CLI or a Bicep template.
115
115
116
-
### Example with Bicep template
116
+
### Upload schema with the CLI
117
+
118
+
The [az iot ops schema](/cli/azure/iot/ops/schema) command group contains commands to create, view, and manage schemas in your schema registry.
119
+
120
+
You can upload a schema by referencing a JSON file or by including the schema as inline content.
121
+
122
+
The following example uses minimal inputs to create a schema called `myschema` from a file. When no version number is specified, the schema version is 1.
Once the `create` command is completed, you should see a blob in your storage account container with the schema content. The name for the blob is in the format `schema-namespace/schema/version`.
135
+
136
+
You can see more options with the helper command `az iot ops schema -h`.
137
+
138
+
### Upload schema with a Bicep template
117
139
118
140
Create a Bicep `.bicep` file, and add the schema content to it at the top as a variable. This example is a Delta schema that corresponds to the OPC UA data from [quickstart](../get-started-end-to-end-sample/quickstart-add-assets.md).
0 commit comments