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-hub/tutorial-message-enrichments.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ In this tutorial, you see two ways to create and configure the resources that ar
19
19
20
20
* The second method is to use an Azure Resource Manager template to create both the resources *and* the configurations for the message routing and message enrichments.
21
21
22
-
After the configurations for the message routing and message enrichments are finished, you use an application to send messages to the IoT hub. The hub then routes them to both storage containers. Only the messages sent to the endpoint for the enriched storage container are enriched.
22
+
After the configurations for the message routing and message enrichments are finished, you use an application to send messages to the IoT hub. The hub then routes them to both storage containers. Only the messages sent to the endpoint for the **enriched** storage container are enriched.
23
23
24
24
Here are the tasks you perform to complete this tutorial:
25
25
@@ -41,8 +41,8 @@ Here are the tasks you perform to complete this tutorial:
41
41
42
42
Download the [IoT C# samples](https://github.com/Azure-Samples/azure-iot-samples-csharp/archive/master.zip) from GitHub and unzip them. This repository has several applications, scripts, and Resource Manager templates in it. The ones to be used for this tutorial are as follows:
43
43
44
-
* For the manual method, there's a CLI script that's used to create the resources. This script is in /azure-iot-samples-csharp/iot-hub/Tutorials/Routing/SimulatedDevice/resources/iothub_msgenrichment_cli.azcli. This script creates the resources and configures the message routing. After you run this script, create the message enrichments manually by using the [Azure portal](https://portal.azure.com). Then run the Device Simulation app to see the enrichments working.
45
-
* For the automated method, there's an Azure Resource Manager template. The template is in /azure-iot-samples-csharp/iot-hub/Tutorials/Routing/SimulatedDevice/resources/template_msgenrichments.json. This template creates the resources, configures the message routing, and then configures the message enrichments. After you load this template, run the Device Simulation app to see the enrichments working.
44
+
* For the manual method, there's a CLI script that's used to create the resources. This script is in /azure-iot-samples-csharp/iot-hub/Tutorials/Routing/SimulatedDevice/resources/iothub_msgenrichment_cli.azcli. This script creates the resources and configures the message routing. After you run this script, create the message enrichments manually by using the [Azure portal](https://portal.azure.com).
45
+
* For the automated method, there's an Azure Resource Manager template. The template is in /azure-iot-samples-csharp/iot-hub/Tutorials/Routing/SimulatedDevice/resources/template_msgenrichments.json. This template creates the resources, configures the message routing, and then configures the message enrichments.
46
46
* The third application you use is the Device Simulation app, which you use to send messages to the IoT hub and test the message enrichments.
47
47
48
48
## Manually set up and configure by using the Azure CLI
@@ -82,16 +82,16 @@ Here are the resources created by the script. *Enriched* means that the resource
82
82
| route Name 2 | ContosoStorageRouteEnriched |
83
83
84
84
```azurecli-interactive
85
-
# This command retrieves the subscription ID of the current Azure account.
86
-
# This field is used when you set up the routing queries.
85
+
# This command retrieves the subscription id of the current Azure account.
86
+
# This field is used when setting up the routing queries.
87
87
subscriptionID=$(az account show --query id -o tsv)
88
88
89
89
# Concatenate this number onto the resources that have to be globally unique.
90
90
# You can set this to "" or to a specific value if you don't want it to be random.
91
91
# This retrieves a random value.
92
92
randomValue=$RANDOM
93
93
94
-
# This command installs the IoT extension for the Azure CLI.
94
+
# This command installs the IOT Extension for Azure CLI.
# This is the endpoint for the first container, for endpoint messages that aren't enriched.
192
+
# This is the endpoint for the first container, for endpoint messages that are not enriched.
193
193
az iot hub routing-endpoint create \
194
194
--connection-string $storageConnectionString \
195
195
--endpoint-name $endpointName1 \
@@ -213,7 +213,7 @@ az iot hub routing-endpoint create \
213
213
--resource-group $resourceGroup \
214
214
--encoding json
215
215
216
-
# This is the route for messages that aren't enriched.
216
+
# This is the route for messages that are not enriched.
217
217
# Create the route for the first storage endpoint.
218
218
az iot hub route create \
219
219
--name $routeName1 \
@@ -236,7 +236,7 @@ az iot hub route create \
236
236
--condition $condition
237
237
```
238
238
239
-
At this point, the resources are all set up and the message routing is configured. You can view the message routing configuration in the portal and set up the message enrichments for messages going to the enriched storage container.
239
+
At this point, the resources are all set up and the message routing is configured. You can view the message routing configuration in the portal and set up the message enrichments for messages going to the **enriched** storage container.
240
240
241
241
### Manually configure the message enrichments by using the Azure portal
242
242
@@ -284,9 +284,9 @@ You can use a Resource Manager template to create and configure the resources, m
284
284
285
285
1. Select **Open** to load the template file from the local machine. It loads and appears in the edit pane.
286
286
287
-
This template is set up to use a globally unique IoT hub name and storage account name by adding a random value to the end of the default names. You can use the template without making any changes to it.
287
+
This template is set up to use a globally unique IoT hub name and storage account name by adding a random value to the end of the default names, so you can use the template without making any changes to it.
288
288
289
-
Here are the resources created by loading the template. *Enriched* means that the resource is for messages with enrichments. *Original* means that the resource is for messages that aren't enriched. These are the same values used in the Azure CLI script.
289
+
Here are the resources created by loading the template. **Enriched** means that the resource is for messages with enrichments. **Original** means that the resource is for messages that aren't enriched. These are the same values used in the Azure CLI script.
0 commit comments