Skip to content

Commit 55de91b

Browse files
Merge pull request #291325 from PatAltimore/patricka-mqtt-bridge-fix
Add serialization to Bicep
2 parents 13b8b0e + d73d754 commit 55de91b

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

articles/iot-operations/connect-to-cloud/tutorial-mqtt-bridge.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,28 @@ resource dataflow_1 'Microsoft.IoTOperations/instances/dataflowProfiles/dataflow
366366
operationType: 'Source'
367367
sourceSettings: {
368368
endpointRef: 'default'
369+
serializationFormat: 'Json'
369370
dataSources: array('tutorial/local')
370371
}
371372
}
373+
{
374+
operationType: 'BuiltInTransformation'
375+
376+
builtInTransformationSettings: {
377+
serializationFormat: 'Json'
378+
datasets: []
379+
filter: []
380+
map: [
381+
{
382+
type: 'PassThrough'
383+
inputs: [
384+
'*'
385+
]
386+
output: '*'
387+
}
388+
]
389+
}
390+
}
372391
{
373392
operationType: 'Destination'
374393
destinationSettings: {
@@ -393,9 +412,28 @@ resource dataflow_2 'Microsoft.IoTOperations/instances/dataflowProfiles/dataflow
393412
operationType: 'Source'
394413
sourceSettings: {
395414
endpointRef: 'eventgrid'
415+
serializationFormat: 'Json'
396416
dataSources: array('telemetry/#')
397417
}
398418
}
419+
{
420+
operationType: 'BuiltInTransformation'
421+
422+
builtInTransformationSettings: {
423+
serializationFormat: 'Json'
424+
datasets: []
425+
filter: []
426+
map: [
427+
{
428+
type: 'PassThrough'
429+
inputs: [
430+
'*'
431+
]
432+
output: '*'
433+
}
434+
]
435+
}
436+
}
399437
{
400438
operationType: 'Destination'
401439
destinationSettings: {
@@ -405,7 +443,7 @@ resource dataflow_2 'Microsoft.IoTOperations/instances/dataflowProfiles/dataflow
405443
}
406444
]
407445
}
408-
}
446+
}
409447
```
410448

411449
Like the dataflow endpoint, execute the following command in your terminal:

0 commit comments

Comments
 (0)