Azure Data Explorer Eventhub Data Connection
This page shows how to write Terraform and Azure Resource Manager for Data Explorer Eventhub Data Connection and write them securely.
azurerm_kusto_eventhub_data_connection (Terraform)
The Eventhub Data Connection in Data Explorer can be configured in Terraform with the resource name azurerm_kusto_eventhub_data_connection
. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_kusto_eventhub_data_connection" "this" {
cluster_name = var.cluster_name
consumer_group = var.consumer_group
data_format = var.data_format
database_name = var.database_name
eventhub_id = var.eventhub_id
resource "azurerm_kusto_eventhub_data_connection" "this" {
cluster_name = var.cluster_name
consumer_group = var.consumer_group
data_format = var.data_format
database_name = var.database_name
eventhub_id = var.eventhub_id
resource "azurerm_kusto_eventhub_data_connection" "eventhub_connection" {
cluster_name = azurerm_kusto_cluster.cluster.name
consumer_group = azurerm_eventhub_consumer_group.eventhub_cg.name
data_format = var.data_format
database_name = azurerm_kusto_database.database.name
eventhub_id = azurerm_eventhub.ev-am.id
Parameters
-
cluster_name
required - string -
compression
optional - string -
consumer_group
required - string -
data_format
optional - string -
database_name
required - string -
event_system_properties
optional computed - list of string -
eventhub_id
required - string -
id
optional computed - string -
location
required - string -
mapping_rule_name
optional - string -
name
required - string -
resource_group_name
required - string -
table_name
optional - string -
timeouts
single block
Explanation in Terraform Registry
Manages a Kusto (also known as Azure Data Explorer) EventHub Data Connection
Microsoft.Kusto/Clusters/Databases/DataConnections (Azure Resource Manager)
The Clusters/Databases/DataConnections in Microsoft.Kusto can be configured in Azure Resource Manager with the resource name Microsoft.Kusto/Clusters/Databases/DataConnections
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
"type": "Microsoft.Kusto/Clusters/Databases/DataConnections",
"location": "westus",
"kind": "EventHub",
"properties": {
"eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1",
"consumerGroup": "testConsumerGroup1"
Frequently asked questions
What is Azure Data Explorer Eventhub Data Connection?
Azure Data Explorer Eventhub Data Connection is a resource for Data Explorer of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Data Explorer Eventhub Data Connection?
For Terraform, the kevinhead/azurerm, niveklabs/azurerm and cjthorpe/terraform-azure-code source code examples are useful. See the Terraform Example section for further details.
For Azure Resource Manager, the debhol/azuredocs, debhol/azuredocs and debhol/azuredocs source code examples are useful. See the Azure Resource Manager Example section for further details.