Skip to content

Commit bdb4e36

Browse files
authored
Merge pull request #289876 from dominicbetts/release-aio-ga-tutorial-updates
AIO [GA]: tutorial updates to use metadata
2 parents 081f7a3 + 0256820 commit bdb4e36

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed
-5.36 KB
Loading
251 Bytes
Loading
2.49 KB
Loading

articles/iot-operations/end-to-end-tutorials/tutorial-add-assets.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ To create an asset, select **Create asset**. Then enter the following asset info
115115
| Asset Endpoint | `opc-ua-connector-0` |
116116
| Asset name | `thermostat` |
117117
| Description | `A simulated thermostat asset` |
118+
| Default MQTT topic | `azure-iot-operations/data/thermostat` |
118119

119120
Remove the existing **Custom properties** and add the following custom properties. Be careful to use the exact property names, as the Power BI template in a later tutorial queries for them:
120121

articles/iot-operations/end-to-end-tutorials/tutorial-upload-telemetry-to-cloud.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,22 @@ To create the dataflow:
137137
|-----------|--------------------|
138138
| Tag 10.Value | ThermostatHumidity |
139139
| temperature.Value | ThermostatTemperature |
140+
141+
1. To copy the asset ID from the message metadata, add the following rename transform:
142+
143+
| Datapoint | New datapoint name |
144+
|-----------|--------------------|
145+
| $metadata.user_property.externalAssetId | AssetId |
140146

141147
The rename transformation looks like the following screenshot:
142148

143149
:::image type="content" source="media/tutorial-upload-telemetry-to-cloud/rename-transform.png" alt-text="Screenshot of the rename transformation.":::
144150

145151
Select **Apply**.
146152

147-
1. To add an asset ID field to the message, select the **Transforms** box in the editor and then select **+ Add** in the **New property** tile.
148-
149-
1. In the **New property** editor, enter *AssetId* as the property key, *thermostat-01* as the property value, and select **Apply**. The dataflow editor now looks like the following screenshot:
153+
1. The dataflow editor now looks like the following screenshot:
150154

151-
:::image type="content" source="media/tutorial-upload-telemetry-to-cloud/dataflow-complete.png" alt-text="Screenshot of the dataflow.":::
155+
:::image type="content" source="media/tutorial-upload-telemetry-to-cloud/dataflow-complete.png" alt-text="Screenshot of the completed dataflow.":::
152156

153157
1. To start the dataflow running, enter *tutorial-dataflow* as its name and then select **Save**. After a few minutes, the **Provisioning State** changes to **Succeeded**. The dataflow is now running in your cluster.
154158

0 commit comments

Comments
 (0)