Skip to content

Commit 1f86b1f

Browse files
authored
Merge pull request #290001 from PatAltimore/patricka-release-aio-ga
Add dataflow transform steps
2 parents 13d6ee9 + ede7bf2 commit 1f86b1f

File tree

6 files changed

+62
-10
lines changed

6 files changed

+62
-10
lines changed

articles/iot-operations/connect-to-cloud/howto-create-dataflow.md

Lines changed: 62 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: patricka
66
ms.service: azure-iot-operations
77
ms.subservice: azure-data-flows
88
ms.topic: how-to
9-
ms.date: 11/01/2024
9+
ms.date: 11/06/2024
1010
ai-usage: ai-assisted
1111

1212
#CustomerIntent: As an operator, I want to understand how to create a dataflow to connect data sources.
@@ -515,10 +515,41 @@ You can load sample data into the DSS by using the [DSS set tool sample](https:/
515515

516516
In the operations experience, the *Enrich* stage is currently supported using the **Rename** and **New property** transforms.
517517

518-
1. In the operations experience, select a dataflow then **Add transform (optional)**.
519-
1. Choose **Rename** or **New property** transforms then select **Add**.
518+
#### Rename
520519

521-
:::image type="content" source="media/howto-create-dataflow/dataflow-enrich.png" alt-text="Screenshot using operations experience to rename a datapoint and add a new property.":::
520+
You can rename a datapoint using the **Rename** transform. This operation is used to rename a datapoint in the source data to a new name. The new name can be used in the subsequent stages of the dataflow.
521+
522+
1. Under **Transform (optional)**, select **Rename** > **Add**.
523+
524+
:::image type="content" source="media/howto-create-dataflow/dataflow-rename.png" alt-text="Screenshot using operations experience to rename a datapoint.":::
525+
526+
1. Enter the required settings.
527+
528+
| Setting | Description |
529+
|--------------------|---------------------------------------------------------------------------------------------------------|
530+
| Datapoint | Select a datapoint from the dropdown or enter a $metadata header using the format `$metadata.<header>.` |
531+
| New datapoint name | Enter the new name for the datapoint. |
532+
| Description | Provide a description for the transformation. |
533+
534+
1. Select **Apply**.
535+
536+
#### New property
537+
538+
You can add a new property to the source data using the **New property** transform. This operation is used to add a new property to the source data. The new property can be used in the subsequent stages of the dataflow.
539+
540+
1. Under **Transform (optional)**, select **New property** > **Add**.
541+
542+
:::image type="content" source="media/howto-create-dataflow/dataflow-new-property.png" alt-text="Screenshot using operations experience to add a new property.":::
543+
544+
1. Enter the required settings.
545+
546+
| Setting | Description |
547+
|--------------------|-----------------------------------------------------------------------------------------------------|
548+
| Property key | Enter the key for the new property. |
549+
| Property value | Enter the value for the new property. |
550+
| Description | Provide a description for the new property. |
551+
552+
1. Select **Apply**.
522553

523554
# [Bicep](#tab/bicep)
524555

@@ -576,14 +607,21 @@ To filter the data on a condition, you can use the `filter` stage. The condition
576607
# [Portal](#tab/portal)
577608

578609
1. Under **Transform (optional)**, select **Filter** > **Add**.
579-
1. Choose the datapoints to include in the dataset.
580-
1. Add a filter condition and description.
581610

582611
:::image type="content" source="media/howto-create-dataflow/dataflow-filter.png" alt-text="Screenshot using operations experience to add a filter transform.":::
583612

584-
1. Select **Apply**.
613+
1. Enter the required settings.
614+
615+
| Setting | Description |
616+
|--------------------|---------------------------------------------------------------------------------------------------|
617+
| Filter condition | The condition to filter the data based on a field in the source data. |
618+
| Description | Provide a description for the filter condition. |
619+
620+
In the filter condition field, type `@` or select **Ctrl + Space** to select datapoints from a dropdown. You can also enter $metadata headers using the format `@$metadata.<header>`.
585621

586-
For example, you could use a filter condition like `temperature > 20` to filter data less than or equal to 20 based on the temperature field.
622+
The condition can use the fields in the source data. For example, you could use a filter condition like `temperature > 20` to filter data less than or equal to 20 based on the temperature field.
623+
624+
1. Select **Apply**.
587625

588626
# [Bicep](#tab/bicep)
589627

@@ -629,10 +667,24 @@ To map the data to another field with optional conversion, you can use the `map`
629667
In the operations experience, mapping is currently supported using **Compute** transforms.
630668

631669
1. Under **Transform (optional)**, select **Compute** > **Add**.
632-
1. Enter the required fields and expressions.
633670

634671
:::image type="content" source="media/howto-create-dataflow/dataflow-compute.png" alt-text="Screenshot using operations experience to add a compute transform.":::
635672

673+
1. Enter the required settings.
674+
675+
| Setting | Description |
676+
|--------------------|---------------------------------------------------------------------------------------------------|
677+
| Select formula | Choose an existing formula from the dropdown or select **Custom** to enter a formula manually. |
678+
| Output | Specify the output display name for the result. |
679+
| Formula | Enter the formula to be applied to the source data. |
680+
| Description | Provide a description for the transformation. |
681+
| Last known value | Optionally, use the last known value if the current value isn't available. |
682+
683+
684+
You can enter or edit a formula in the **Formula** field. The formula can use the fields in the source data. Type `@` or select **Ctrl + Space** to select datapoints from a dropdown. You can also enter $metadata headers using the format `@$metadata.<header>`.
685+
686+
The formula can use the fields in the source data. For example, you could use the `temperature` field in the source data to convert the temperature to Celsius and store it in the `temperatureCelsius` output field.
687+
636688
1. Select **Apply**.
637689

638690
# [Bicep](#tab/bicep)
@@ -883,7 +935,7 @@ destinationSettings:
883935

884936
## Example
885937

886-
The following example is a dataflow configuration that uses the MQTT endpoint for the source and destination. The source filters the data from the MQTT topic `azure-iot-operations/data/thermostat`. The transformation converts the temperature to Fahrenheit and filters the data where the temperature multiplied by the humiditiy is less than 100000. The destination sends the data to the MQTT topic `factory`.
938+
The following example is a dataflow configuration that uses the MQTT endpoint for the source and destination. The source filters the data from the MQTT topic `azure-iot-operations/data/thermostat`. The transformation converts the temperature to Fahrenheit and filters the data where the temperature multiplied by the humidity is less than 100000. The destination sends the data to the MQTT topic `factory`.
887939

888940
# [Portal](#tab/portal)
889941

120 KB
Loading
81.4 KB
Loading
169 KB
Loading
171 KB
Loading

0 commit comments

Comments
 (0)