Skip to content

Commit f414415

Browse files
added details to local storage tutorial
1 parent 2bfba4a commit f414415

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

articles/iot-operations/connect-to-cloud/howto-configure-local-storage-endpoint.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,31 @@ The PersistentVolumeClaim (PVC) must be in the same namespace as the *DataflowEn
6161
6262
# [Bicep](#tab/bicep)
6363
64+
This Bicep template file from [Bicep File for local storage dataflow Tutorial](https://gist.github.com/david-emakenemi/52377e32af1abd0efe41a5da27190a10) deploys the necessary resources for dataflows to local storage.
65+
66+
Download the file to your local, and make sure to replace the values for `customLocationName`, `aioInstanceName`, `schemaRegistryName`, `opcuaSchemaName`, and `persistentVCName`.
67+
68+
Next, deploy the resources using the [az stack group](/azure/azure-resource-manager/bicep/deployment-stacks?tabs=azure-powershell) command in your terminal:
69+
70+
```azurecli
71+
az stack group create --name MyDeploymentStack --resource-group $RESOURCE_GROUP --template-file /workspaces/explore-iot-operations/mqtt-bridge.bicep --action-on-unmanage 'deleteResources' --deny-settings-mode 'none' --yes
72+
```
73+
6474
```bicep
65-
bicep here
75+
resource localStorageDataflowEndpoint 'Microsoft.IoTOperations/instances/dataflowEndpoints@2024-08-15-preview' = {
76+
parent: aioInstance
77+
name: 'local-storage-ep'
78+
extendedLocation: {
79+
name: customLocation.id
80+
type: 'CustomLocation'
81+
}
82+
properties: {
83+
endpointType: 'LocalStorage'
84+
localStorageSettings: {
85+
persistentVolumeClaimRef: persistentVCName
86+
}
87+
}
88+
}
6689
```
6790
---
6891

@@ -113,7 +136,13 @@ spec:
113136
# [Bicep](#tab/bicep)
114137

115138
```bicep
116-
bicep here
139+
{
140+
operationType: 'Destination'
141+
destinationSettings: {
142+
endpointRef: localStorageDataflowEndpoint.name
143+
ataDestination: 'sensorData'
144+
}
145+
}
117146
```
118147
---
119148

0 commit comments

Comments
 (0)