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
title: 'Quickstart: Create an Azure Event Hubs Schema Registry'
3
3
description: Azure Schema Registry provides a central repository for schemas for event-driven and messaging-centric apps. Learn how to create a schema registry.
# Quickstart: Create an Azure Event Hubs schema registry using Azure portal
12
12
13
-
**Azure Schema Registry** is a feature of Event Hubs, which provides a central repository for schemas for event-driven and messaging-centric applications. It provides the flexibility for your producer and consumer applications to **exchange data without having to manage and share the schema**. It also provides a simple governance framework for reusable schemas and defines relationship between schemas through a grouping construct (schema groups). For more information, see [Azure Schema Registry in Event Hubs](schema-registry-overview.md).
13
+
In this quickstart, you create a schema group with schemas in a schema registry hosted by Azure Event Hubs.
14
+
15
+
**Azure Schema Registry** is a feature of Event Hubs. It provides a central repository for schemas for event-driven and messaging-centric applications. It provides the flexibility for your producer and consumer applications to *exchange data without having to manage and share the schema*. It also provides a simple governance framework for reusable schemas and defines relationship between schemas through a grouping construct (schema groups). For more information, see [Azure Schema Registry in Event Hubs](schema-registry-overview.md).
14
16
15
-
This article shows you how to create a schema group with schemas in a schema registry hosted by Azure Event Hubs.
16
17
17
18
> [!NOTE]
18
-
> - The feature isn't available in the **basic** tier.
19
+
> - The feature isn't available in the **Basic** tier.
19
20
> - Make sure that you're a member of one of these roles: **Owner**, **Contributor**, or **Schema Registry Contributor**. For more information, see [Azure role-based access control](schema-registry-concepts.md#azure-role-based-access-control).
20
-
> - If the event hub is in a **virtual network**, you can't create schemas in the Azure portal unless you access the portal from a virtual machine in the same virtual network.
21
-
21
+
> - If the event hub is in a *virtual network*, you can't create schemas in the Azure portal unless you access the portal from a virtual machine in the same virtual network.
22
22
23
23
## Prerequisites
24
+
24
25
[Create an Event Hubs namespace](event-hubs-create.md#create-an-event-hubs-namespace). You can also use an existing namespace.
25
26
26
27
## Create a schema group
27
-
1. Navigate to the **Event Hubs Namespace** page.
28
-
1. Select **Schema Registry** on the left menu. To create a schema group, select **+ Schema Group** on the toolbar.
29
28
30
-
:::image type="content" source="./media/create-schema-registry/namespace-page.png" alt-text="Image showing the Schema Registry page in the Azure portal":::
29
+
1. Navigate to the **Event Hubs Namespace** page.
30
+
1. In the left menu, expand **Entities** and select **Schema Registry**.
31
+
1. To create a schema group, select **+ Schema Group**.
32
+
33
+
:::image type="content" source="./media/create-schema-registry/namespace-page.png" alt-text="Screenshot showing the Schema Registry page in the Azure portal" lightbox="./media/create-schema-registry/namespace-page.png":::
34
+
31
35
1. On the **Create Schema Group** page, do these steps:
32
-
1. Enter a **name** for the schema group.
33
-
1. For **Serialization type**, select **Avro** serialization format that applies to all schemas in the schema group. **JSON** serialization format is also supported (preview).
34
-
3. Select a **compatibility mode** for all schemas in the group. For **Avro**, forward and backward compatibility modes are supported.
35
-
4. Then, select **Create** to create the schema group.
36
-
37
-
:::image type="content" source="./media/create-schema-registry/create-schema-group-page.png" alt-text="Image showing the page for creating a schema group":::
38
-
1. Select the name of the **schema group** in the list of schema groups.
39
36
40
-
:::image type="content" source="./media/create-schema-registry/select-schema-group.png" alt-text="Image showing schema group in the list selected.":::
37
+
1. Enter a **name** for the schema group.
38
+
1. For **Serialization type**, select **Avro** serialization format. This format applies to all schemas in the schema group. **JSON** serialization format is also supported (preview).
39
+
1. Select a **compatibility mode** for all schemas in the group. For **Avro**, forward and backward compatibility modes are supported.
40
+
1. Select **Create** to create the schema group.
41
+
42
+
:::image type="content" source="./media/create-schema-registry/create-schema-group-page.png" alt-text="Screenshot showing the page for creating a schema group.":::
43
+
44
+
1. Select the name of the schema group in the list of schema groups.
45
+
46
+
:::image type="content" source="./media/create-schema-registry/select-schema-group.png" alt-text="Screenshot showing schema group in the list selected." lightbox="./media/create-schema-registry/select-schema-group.png":::
47
+
41
48
1. You see the **Schema Group** page for the group.
42
49
43
-
:::image type="content" source="./media/create-schema-registry/schema-group-page.png" alt-text="Image showing the Schema Group page":::
44
-
50
+
:::image type="content" source="./media/create-schema-registry/schema-group-page.png" alt-text="Screenshot showing the Schema Group page." lightbox="./media/create-schema-registry/schema-group-page.png":::
51
+
45
52
46
53
## Add a schema to the schema group
54
+
47
55
In this section, you add a schema to the schema group using the Azure portal.
48
56
49
57
1. On the **Schema Group** page, select **+ Schema** on the toolbar.
50
58
1. On the **Create Schema** page, do these steps:
59
+
51
60
1. For **Name**, enter `orderschema`.
52
-
1. Enter the following **schema** into the text box. You can also select file with the schema.
61
+
1. Enter the following **schema** into the text box. You can instead select a file with the schema.
53
62
54
63
```json
55
64
{
@@ -68,41 +77,46 @@ In this section, you add a schema to the schema group using the Azure portal.
68
77
]
69
78
}
70
79
```
71
-
1. Select **Create**.
80
+
1. Select **Create**.
81
+
72
82
1. Select the **schema** from the list of schemas.
73
83
74
-
:::image type="content" source="./media/create-schema-registry/select-schema.png" alt-text="Image showing the schema selected.":::
84
+
:::image type="content" source="./media/create-schema-registry/select-schema.png" alt-text="Screenshot showing the schema selected.":::
85
+
75
86
1. You see the **Schema Overview** page for the schema.
76
87
77
-
:::image type="content" source="./media/create-schema-registry/schema-overview-page.png" alt-text="Image showing the Schema Overview page.":::
78
-
1. If there are multiple versions of a schema, you see them in the **Versions** drop-down list. Select a version to switch to that version schema.
88
+
:::image type="content" source="./media/create-schema-registry/schema-overview-page.png" alt-text="Image showing the Schema Overview page.":::
89
+
90
+
1. If there are multiple versions of a schema, you see them in the **Versions**. Select a version to switch to that version schema.
79
91
80
92
## Create a new version of schema
81
93
82
-
1. Update the schema in the text box, and select **Validate**. In the following example, a new field `description` has been added to the schema.
94
+
1. Update the schema in the text box, and select **Validate**. In the following example, you add a new field called `description` to the schema.
95
+
96
+
:::image type="content" source="./media/create-schema-registry/update-schema.png" alt-text="Image showing the Update schema page":::
83
97
84
-
:::image type="content" source="./media/create-schema-registry/update-schema.png" alt-text="Image showing the Update schema page":::
85
-
86
98
1. Review validation status and changes, and select **Save**.
87
99
88
-
:::image type="content" source="./media/create-schema-registry/compare-save-schema.png" alt-text="Image showing the Review page that shows validation status, changes, and save":::
89
-
1. You see that `2` is selected for the **version** on the **Schema Overview** page.
100
+
:::image type="content" source="./media/create-schema-registry/compare-save-schema.png" alt-text="Image showing the Review page that shows validation status, changes, and save":::
101
+
102
+
You see that `2` is selected for the **version** on the **Schema Overview** page.
103
+
104
+
:::image type="content" source="./media/create-schema-registry/new-version.png" alt-text="Image showing the new version of schema":::
90
105
91
-
:::image type="content" source="./media/create-schema-registry/new-version.png" alt-text="Image showing the new version of schema":::
92
106
1. Select `1` to see the version 1 of the schema.
93
107
94
108
## Clean up resources
95
109
96
110
> [!NOTE]
97
-
> Don't clean up resources if you want to continue to the next quick start linked from **Next steps**.
111
+
> Don't clean up resources if you want to continue to the next quickstart linked from **Next step**.
98
112
99
-
1. Navigate to the **Event Hubs Namespace** page.
113
+
1. Navigate to the **Event Hubs Namespace** page.
100
114
1. Select **Schema Registry** on the left menu.
101
-
1. Select the **schema group** you created in this quickstart.
115
+
1. Select the **schema group** you created in this quickstart.
102
116
1. On the **Schema Group** page, select **Delete** on the toolbar.
103
117
1. On the **Delete Schema Group** page, type the name of the schema group, and select **Delete**.
104
118
105
-
## Next steps
119
+
## Next step
106
120
107
121
> [!div class="nextstepaction"]
108
122
> [Validate schema when sending and receiving events - AMQP and .NET](schema-registry-dotnet-send-receive-quickstart.md).
0 commit comments