Skip to content

Commit 265acf7

Browse files
author
Pat Altimore
committed
Add CLI tab
1 parent e9926c3 commit 265acf7

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

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

Lines changed: 56 additions & 1 deletion
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: 04/09/2025
9+
ms.date: 06/18/2025
1010

1111
#CustomerIntent: As an operator, I want to understand how to I can configure a a data flow profile to control a data flow behavior.
1212
---
@@ -31,6 +31,20 @@ A data flow profile named *default* is created when Azure IoT Operations is depl
3131

3232
:::image type="content" source="media/howto-configure-dataflow-profile/default-profile.png" alt-text="Screenshot of the Azure portal displaying the default data flow profile details, including instance count and configuration options.":::
3333

34+
# [Azure CLI](#tab/azure-cli)
35+
36+
Use the [az iot operations dataflow profile show](/cli/azure/iot/ops/dataflow/profile/show#az-iot-ops-dataflow-profile-show) command to view the default data flow profile:
37+
38+
```azurecli
39+
az iot operations dataflow profile show --resource-group <ResourceGroupName> --instance <AioInstanceName> --name default
40+
```
41+
42+
Here's and example command to view the default data flow profile:
43+
44+
```azurecli
45+
az iot operations dataflow profile show --resource-group myResourceGroup --instance myAioInstance --name default
46+
```
47+
3448
# [Bicep](#tab/bicep)
3549

3650
```bicep
@@ -94,6 +108,19 @@ To create a new data flow profile, specify the name of the profile and the insta
94108
95109
:::image type="content" source="media/howto-configure-dataflow-profile/create-profile.png" alt-text="Screenshot of the Azure portal displaying the create data flow profile pane, including fields for name, instance count, and configuration options.":::
96110
111+
# [Azure CLI](#tab/azure-cli)
112+
113+
Use the [az iot operations dataflow profile create](/cli/azure/iot/ops/dataflow/profile/create#az-iot-ops-dataflow-profile-create) command to create a new data flow profile:
114+
115+
```azurecli
116+
az iot operations dataflow profile create --resource-group <ResourceGroupName> --instance <AioInstanceName> --name <ProfileName>
117+
```
118+
Here's an example command to create a new data flow profile named `myDataFlowProfile`:
119+
120+
```azurecli
121+
az iot operations dataflow profile create --resource-group myResourceGroup --instance myAioInstance --name myDataFlowProfile
122+
```
123+
97124
# [Bicep](#tab/bicep)
98125

99126
```bicep
@@ -137,6 +164,20 @@ To manually scale the data flow profile, specify the number of instances you wan
137164
138165
:::image type="content" source="media/howto-configure-dataflow-profile/profile-scale.png" alt-text="Screenshot of the Azure portal displaying data flow details and the instance count slider set to 3.":::
139166
167+
# [Azure CLI](#tab/azure-cli)
168+
169+
Use the [az iot operations dataflow profile update](/cli/azure/iot/ops/dataflow/profile/update#az-iot-ops-dataflow-profile-update) command to update the instance count of a data flow profile:
170+
171+
```azurecli
172+
az iot operations dataflow profile update --resource-group <ResourceGroupName> --instance <AioInstanceName> --name <ProfileName> --profile-instance <InstanceCount>
173+
```
174+
175+
Here's an example command to set the instance count to three for data flow profile `myDataFlowProfile`:
176+
177+
```azurecli
178+
az iot operations dataflow profile update --resource-group myResourceGroup --instance myAioInstance --name myDataFlowProfile --profile-instances 3
179+
```
180+
140181
# [Bicep](#tab/bicep)
141182

142183
```bicep
@@ -171,6 +212,20 @@ To learn how to configure these diagnostic settings, see [ProfileDiagnostics](/r
171212
172213
:::image type="content" source="media/howto-configure-dataflow-profile/profile-diagnostics.png" alt-text="Screenshot of the Azure portal displaying data flow details and the log level options listed.":::
173214
215+
# [Azure CLI](#tab/azure-cli)
216+
217+
Use the [az iot operations dataflow profile update](/cli/azure/iot/ops/dataflow/profile/update#az-iot-ops-dataflow-profile-update) command to update the diagnostics settings of a data flow profile:
218+
219+
```azurecli
220+
az iot operations dataflow profile update --resource-group <ResourceGroupName> --instance <AioInstanceName> --name <ProfileName> --log-level <level>
221+
```
222+
223+
Here's an example command to set the log level to `debug` for data flow profile `myDataFlowProfile`:
224+
225+
```azurecli
226+
az iot operations dataflow profile update --resource-group myResourceGroup --instance myAioInstance --name myDataFlowProfile --log-level debug
227+
```
228+
174229
# [Bicep](#tab/bicep)
175230

176231
```bicep

0 commit comments

Comments
 (0)