Skip to content

Commit

Permalink
Update dataflow.bicep
Browse files Browse the repository at this point in the history
Added Kafka dataflow and endpoint
  • Loading branch information
david-emakenemi authored Oct 11, 2024
1 parent e82d4d1 commit 8702d6b
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions samples/quickstarts/dataflow.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -536,4 +536,66 @@ resource dataflow_2 'Microsoft.IoTOperations/instances/dataflowProfiles/dataflow
}
]
}
}

// EventHub Endpoint
resource kafkaEndpoint 'Microsoft.IoTOperations/instances/dataflowEndpoints@2024-08-15-preview' = {
parent: aioInstance
name: 'eventhubs'
extendedLocation: {
name: customLocation.id
type: 'CustomLocation'
}
properties: {
endpointType: 'Kafka'
kafkaSettings: {
host: '<HOST>.servicebus.windows.net:9093'
authentication: {
method: 'SystemAssignedManagedIdentity'
systemAssignedManagedIdentitySettings: {}
}
tls: {
mode: 'Enabled'
}
batching: {
enabled: true
latencyMs: 1000
maxMessages: 100
maxBytes: 1024
}
kafkaAcks: 'All'
copyMqttProperties: 'Enabled'
consumerGroupId: 'mqConnector'
}
}
}

// Kafka Dataflow
resource kafka_dataflow 'Microsoft.IoTOperations/instances/dataflowProfiles/dataflows@2024-08-15-preview' = {
parent: defaultDataflowProfile
name: 'local-to-eventhub'
extendedLocation: {
name: customLocation.id
type: 'CustomLocation'
}
properties: {
mode: 'Enabled'
operations: [
{
operationType: 'Source'
sourceSettings: {
endpointRef: defaultDataflowEndpoint.name
dataSources: array('azure-iot-operations/data/thermostat')
}
}
{
operationType: 'Destination'
destinationSettings: {
endpointRef: kafkaEndpoint.name
dataDestination: 'temperature'
}
}
]
}
}

0 comments on commit 8702d6b

Please sign in to comment.