We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a Kusto (also known as Azure Data Explorer) Event Grid Data Connection
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleCluster = new Azure.Kusto.Cluster("exampleCluster", new Azure.Kusto.ClusterArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
{
Name = "Standard_D13_v2",
Capacity = 2,
},
});
var exampleDatabase = new Azure.Kusto.Database("exampleDatabase", new Azure.Kusto.DatabaseArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
ClusterName = exampleCluster.Name,
HotCachePeriod = "P7D",
SoftDeletePeriod = "P31D",
});
var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AccountTier = "Standard",
AccountReplicationType = "GRS",
});
var testEventHubNamespace = new Azure.EventHub.EventHubNamespace("testEventHubNamespace", new Azure.EventHub.EventHubNamespaceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Sku = "Standard",
});
var testEventHub = new Azure.EventHub.EventHub("testEventHub", new Azure.EventHub.EventHubArgs
{
NamespaceName = azurerm_eventhub_namespace.Example.Name,
ResourceGroupName = exampleResourceGroup.Name,
PartitionCount = 1,
MessageRetention = 1,
});
var exampleConsumerGroup = new Azure.EventHub.ConsumerGroup("exampleConsumerGroup", new Azure.EventHub.ConsumerGroupArgs
{
NamespaceName = azurerm_eventhub_namespace.Example.Name,
EventhubName = azurerm_eventhub.Example.Name,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleEventSubscription = new Azure.EventGrid.EventSubscription("exampleEventSubscription", new Azure.EventGrid.EventSubscriptionArgs
{
Scope = exampleAccount.Id,
EventhubEndpointId = azurerm_eventhub.Example.Id,
EventDeliverySchema = "EventGridSchema",
IncludedEventTypes =
{
"Microsoft.Storage.BlobCreated",
"Microsoft.Storage.BlobRenamed",
},
RetryPolicy = new Azure.EventGrid.Inputs.EventSubscriptionRetryPolicyArgs
{
EventTimeToLive = 144,
MaxDeliveryAttempts = 10,
},
});
var exampleEventGridDataConnection = new Azure.Kusto.EventGridDataConnection("exampleEventGridDataConnection", new Azure.Kusto.EventGridDataConnectionArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
ClusterName = exampleCluster.Name,
DatabaseName = exampleDatabase.Name,
StorageAccountId = exampleAccount.Id,
EventhubId = azurerm_eventhub.Example.Id,
EventhubConsumerGroupName = exampleConsumerGroup.Name,
TableName = "my-table",
MappingRuleName = "my-table-mapping",
DataFormat = "JSON",
}, new CustomResourceOptions
{
DependsOn =
{
exampleEventSubscription,
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/eventgrid"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/eventhub"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/kusto"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleCluster, err := kusto.NewCluster(ctx, "exampleCluster", &kusto.ClusterArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Sku: &kusto.ClusterSkuArgs{
Name: pulumi.String("Standard_D13_v2"),
Capacity: pulumi.Int(2),
},
})
if err != nil {
return err
}
exampleDatabase, err := kusto.NewDatabase(ctx, "exampleDatabase", &kusto.DatabaseArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
ClusterName: exampleCluster.Name,
HotCachePeriod: pulumi.String("P7D"),
SoftDeletePeriod: pulumi.String("P31D"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("GRS"),
})
if err != nil {
return err
}
_, err = eventhub.NewEventHubNamespace(ctx, "testEventHubNamespace", &eventhub.EventHubNamespaceArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Sku: pulumi.String("Standard"),
})
if err != nil {
return err
}
_, err = eventhub.NewEventHub(ctx, "testEventHub", &eventhub.EventHubArgs{
NamespaceName: pulumi.Any(azurerm_eventhub_namespace.Example.Name),
ResourceGroupName: exampleResourceGroup.Name,
PartitionCount: pulumi.Int(1),
MessageRetention: pulumi.Int(1),
})
if err != nil {
return err
}
exampleConsumerGroup, err := eventhub.NewConsumerGroup(ctx, "exampleConsumerGroup", &eventhub.ConsumerGroupArgs{
NamespaceName: pulumi.Any(azurerm_eventhub_namespace.Example.Name),
EventhubName: pulumi.Any(azurerm_eventhub.Example.Name),
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
exampleEventSubscription, err := eventgrid.NewEventSubscription(ctx, "exampleEventSubscription", &eventgrid.EventSubscriptionArgs{
Scope: exampleAccount.ID(),
EventhubEndpointId: pulumi.Any(azurerm_eventhub.Example.Id),
EventDeliverySchema: pulumi.String("EventGridSchema"),
IncludedEventTypes: pulumi.StringArray{
pulumi.String("Microsoft.Storage.BlobCreated"),
pulumi.String("Microsoft.Storage.BlobRenamed"),
},
RetryPolicy: &eventgrid.EventSubscriptionRetryPolicyArgs{
EventTimeToLive: pulumi.Int(144),
MaxDeliveryAttempts: pulumi.Int(10),
},
})
if err != nil {
return err
}
_, err = kusto.NewEventGridDataConnection(ctx, "exampleEventGridDataConnection", &kusto.EventGridDataConnectionArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
ClusterName: exampleCluster.Name,
DatabaseName: exampleDatabase.Name,
StorageAccountId: exampleAccount.ID(),
EventhubId: pulumi.Any(azurerm_eventhub.Example.Id),
EventhubConsumerGroupName: exampleConsumerGroup.Name,
TableName: pulumi.String("my-table"),
MappingRuleName: pulumi.String("my-table-mapping"),
DataFormat: pulumi.String("JSON"),
}, pulumi.DependsOn([]pulumi.Resource{
exampleEventSubscription,
}))
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleCluster = new azure.kusto.Cluster("exampleCluster", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: {
name: "Standard_D13_v2",
capacity: 2,
},
});
const exampleDatabase = new azure.kusto.Database("exampleDatabase", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
clusterName: exampleCluster.name,
hotCachePeriod: "P7D",
softDeletePeriod: "P31D",
});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "GRS",
});
const testEventHubNamespace = new azure.eventhub.EventHubNamespace("testEventHubNamespace", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: "Standard",
});
const testEventHub = new azure.eventhub.EventHub("testEventHub", {
namespaceName: azurerm_eventhub_namespace.example.name,
resourceGroupName: exampleResourceGroup.name,
partitionCount: 1,
messageRetention: 1,
});
const exampleConsumerGroup = new azure.eventhub.ConsumerGroup("exampleConsumerGroup", {
namespaceName: azurerm_eventhub_namespace.example.name,
eventhubName: azurerm_eventhub.example.name,
resourceGroupName: exampleResourceGroup.name,
});
const exampleEventSubscription = new azure.eventgrid.EventSubscription("exampleEventSubscription", {
scope: exampleAccount.id,
eventhubEndpointId: azurerm_eventhub.example.id,
eventDeliverySchema: "EventGridSchema",
includedEventTypes: [
"Microsoft.Storage.BlobCreated",
"Microsoft.Storage.BlobRenamed",
],
retryPolicy: {
eventTimeToLive: 144,
maxDeliveryAttempts: 10,
},
});
const exampleEventGridDataConnection = new azure.kusto.EventGridDataConnection("exampleEventGridDataConnection", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
clusterName: exampleCluster.name,
databaseName: exampleDatabase.name,
storageAccountId: exampleAccount.id,
eventhubId: azurerm_eventhub.example.id,
eventhubConsumerGroupName: exampleConsumerGroup.name,
tableName: "my-table",
mappingRuleName: "my-table-mapping",
dataFormat: "JSON",
}, {
dependsOn: [exampleEventSubscription],
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_cluster = azure.kusto.Cluster("exampleCluster",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku=azure.kusto.ClusterSkuArgs(
name="Standard_D13_v2",
capacity=2,
))
example_database = azure.kusto.Database("exampleDatabase",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
cluster_name=example_cluster.name,
hot_cache_period="P7D",
soft_delete_period="P31D")
example_account = azure.storage.Account("exampleAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
account_tier="Standard",
account_replication_type="GRS")
test_event_hub_namespace = azure.eventhub.EventHubNamespace("testEventHubNamespace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="Standard")
test_event_hub = azure.eventhub.EventHub("testEventHub",
namespace_name=azurerm_eventhub_namespace["example"]["name"],
resource_group_name=example_resource_group.name,
partition_count=1,
message_retention=1)
example_consumer_group = azure.eventhub.ConsumerGroup("exampleConsumerGroup",
namespace_name=azurerm_eventhub_namespace["example"]["name"],
eventhub_name=azurerm_eventhub["example"]["name"],
resource_group_name=example_resource_group.name)
example_event_subscription = azure.eventgrid.EventSubscription("exampleEventSubscription",
scope=example_account.id,
eventhub_endpoint_id=azurerm_eventhub["example"]["id"],
event_delivery_schema="EventGridSchema",
included_event_types=[
"Microsoft.Storage.BlobCreated",
"Microsoft.Storage.BlobRenamed",
],
retry_policy=azure.eventgrid.EventSubscriptionRetryPolicyArgs(
event_time_to_live=144,
max_delivery_attempts=10,
))
example_event_grid_data_connection = azure.kusto.EventGridDataConnection("exampleEventGridDataConnection",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
cluster_name=example_cluster.name,
database_name=example_database.name,
storage_account_id=example_account.id,
eventhub_id=azurerm_eventhub["example"]["id"],
eventhub_consumer_group_name=example_consumer_group.name,
table_name="my-table",
mapping_rule_name="my-table-mapping",
data_format="JSON",
opts=pulumi.ResourceOptions(depends_on=[example_event_subscription]))
Example coming soon!
Create EventGridDataConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventGridDataConnection(name: string, args: EventGridDataConnectionArgs, opts?: CustomResourceOptions);@overload
def EventGridDataConnection(resource_name: str,
args: EventGridDataConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EventGridDataConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
cluster_name: Optional[str] = None,
database_name: Optional[str] = None,
eventhub_consumer_group_name: Optional[str] = None,
eventhub_id: Optional[str] = None,
storage_account_id: Optional[str] = None,
data_format: Optional[str] = None,
location: Optional[str] = None,
mapping_rule_name: Optional[str] = None,
name: Optional[str] = None,
blob_storage_event_type: Optional[str] = None,
skip_first_record: Optional[bool] = None,
table_name: Optional[str] = None)func NewEventGridDataConnection(ctx *Context, name string, args EventGridDataConnectionArgs, opts ...ResourceOption) (*EventGridDataConnection, error)public EventGridDataConnection(string name, EventGridDataConnectionArgs args, CustomResourceOptions? opts = null)
public EventGridDataConnection(String name, EventGridDataConnectionArgs args)
public EventGridDataConnection(String name, EventGridDataConnectionArgs args, CustomResourceOptions options)
type: azure:kusto:EventGridDataConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EventGridDataConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EventGridDataConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EventGridDataConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventGridDataConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventGridDataConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var eventGridDataConnectionResource = new Azure.Kusto.EventGridDataConnection("eventGridDataConnectionResource", new()
{
ResourceGroupName = "string",
ClusterName = "string",
DatabaseName = "string",
EventhubConsumerGroupName = "string",
EventhubId = "string",
StorageAccountId = "string",
DataFormat = "string",
Location = "string",
MappingRuleName = "string",
Name = "string",
BlobStorageEventType = "string",
SkipFirstRecord = false,
TableName = "string",
});
example, err := kusto.NewEventGridDataConnection(ctx, "eventGridDataConnectionResource", &kusto.EventGridDataConnectionArgs{
ResourceGroupName: pulumi.String("string"),
ClusterName: pulumi.String("string"),
DatabaseName: pulumi.String("string"),
EventhubConsumerGroupName: pulumi.String("string"),
EventhubId: pulumi.String("string"),
StorageAccountId: pulumi.String("string"),
DataFormat: pulumi.String("string"),
Location: pulumi.String("string"),
MappingRuleName: pulumi.String("string"),
Name: pulumi.String("string"),
BlobStorageEventType: pulumi.String("string"),
SkipFirstRecord: pulumi.Bool(false),
TableName: pulumi.String("string"),
})
var eventGridDataConnectionResource = new EventGridDataConnection("eventGridDataConnectionResource", EventGridDataConnectionArgs.builder()
.resourceGroupName("string")
.clusterName("string")
.databaseName("string")
.eventhubConsumerGroupName("string")
.eventhubId("string")
.storageAccountId("string")
.dataFormat("string")
.location("string")
.mappingRuleName("string")
.name("string")
.blobStorageEventType("string")
.skipFirstRecord(false)
.tableName("string")
.build());
event_grid_data_connection_resource = azure.kusto.EventGridDataConnection("eventGridDataConnectionResource",
resource_group_name="string",
cluster_name="string",
database_name="string",
eventhub_consumer_group_name="string",
eventhub_id="string",
storage_account_id="string",
data_format="string",
location="string",
mapping_rule_name="string",
name="string",
blob_storage_event_type="string",
skip_first_record=False,
table_name="string")
const eventGridDataConnectionResource = new azure.kusto.EventGridDataConnection("eventGridDataConnectionResource", {
resourceGroupName: "string",
clusterName: "string",
databaseName: "string",
eventhubConsumerGroupName: "string",
eventhubId: "string",
storageAccountId: "string",
dataFormat: "string",
location: "string",
mappingRuleName: "string",
name: "string",
blobStorageEventType: "string",
skipFirstRecord: false,
tableName: "string",
});
type: azure:kusto:EventGridDataConnection
properties:
blobStorageEventType: string
clusterName: string
dataFormat: string
databaseName: string
eventhubConsumerGroupName: string
eventhubId: string
location: string
mappingRuleName: string
name: string
resourceGroupName: string
skipFirstRecord: false
storageAccountId: string
tableName: string
EventGridDataConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EventGridDataConnection resource accepts the following input properties:
- Cluster
Name string - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- Database
Name string - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- Eventhub
Consumer stringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- Eventhub
Id string - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- Storage
Account stringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- Blob
Storage stringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - Data
Format string - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - Location string
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- Mapping
Rule stringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- Name string
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- Skip
First boolRecord - is the first record of every file ignored? Defaults to
false. - Table
Name string - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- Cluster
Name string - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- Database
Name string - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- Eventhub
Consumer stringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- Eventhub
Id string - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- Storage
Account stringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- Blob
Storage stringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - Data
Format string - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - Location string
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- Mapping
Rule stringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- Name string
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- Skip
First boolRecord - is the first record of every file ignored? Defaults to
false. - Table
Name string - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- cluster
Name String - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- database
Name String - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- eventhub
Consumer StringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- eventhub
Id String - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- storage
Account StringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- blob
Storage StringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - data
Format String - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - location String
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- mapping
Rule StringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- name String
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- skip
First BooleanRecord - is the first record of every file ignored? Defaults to
false. - table
Name String - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- cluster
Name string - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- database
Name string - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- eventhub
Consumer stringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- eventhub
Id string - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- resource
Group stringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- storage
Account stringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- blob
Storage stringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - data
Format string - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - location string
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- mapping
Rule stringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- name string
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- skip
First booleanRecord - is the first record of every file ignored? Defaults to
false. - table
Name string - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- cluster_
name str - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- database_
name str - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- eventhub_
consumer_ strgroup_ name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- eventhub_
id str - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- resource_
group_ strname - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- storage_
account_ strid - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- blob_
storage_ strevent_ type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - data_
format str - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - location str
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- mapping_
rule_ strname - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- name str
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- skip_
first_ boolrecord - is the first record of every file ignored? Defaults to
false. - table_
name str - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- cluster
Name String - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- database
Name String - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- eventhub
Consumer StringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- eventhub
Id String - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- storage
Account StringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- blob
Storage StringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - data
Format String - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - location String
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- mapping
Rule StringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- name String
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- skip
First BooleanRecord - is the first record of every file ignored? Defaults to
false. - table
Name String - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventGridDataConnection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EventGridDataConnection Resource
Get an existing EventGridDataConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EventGridDataConnectionState, opts?: CustomResourceOptions): EventGridDataConnection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
blob_storage_event_type: Optional[str] = None,
cluster_name: Optional[str] = None,
data_format: Optional[str] = None,
database_name: Optional[str] = None,
eventhub_consumer_group_name: Optional[str] = None,
eventhub_id: Optional[str] = None,
location: Optional[str] = None,
mapping_rule_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
skip_first_record: Optional[bool] = None,
storage_account_id: Optional[str] = None,
table_name: Optional[str] = None) -> EventGridDataConnectionfunc GetEventGridDataConnection(ctx *Context, name string, id IDInput, state *EventGridDataConnectionState, opts ...ResourceOption) (*EventGridDataConnection, error)public static EventGridDataConnection Get(string name, Input<string> id, EventGridDataConnectionState? state, CustomResourceOptions? opts = null)public static EventGridDataConnection get(String name, Output<String> id, EventGridDataConnectionState state, CustomResourceOptions options)resources: _: type: azure:kusto:EventGridDataConnection get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Blob
Storage stringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - Cluster
Name string - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- Data
Format string - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - Database
Name string - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- Eventhub
Consumer stringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- Eventhub
Id string - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- Location string
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- Mapping
Rule stringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- Name string
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- Skip
First boolRecord - is the first record of every file ignored? Defaults to
false. - Storage
Account stringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- Table
Name string - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- Blob
Storage stringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - Cluster
Name string - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- Data
Format string - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - Database
Name string - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- Eventhub
Consumer stringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- Eventhub
Id string - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- Location string
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- Mapping
Rule stringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- Name string
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- Resource
Group stringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- Skip
First boolRecord - is the first record of every file ignored? Defaults to
false. - Storage
Account stringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- Table
Name string - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- blob
Storage StringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - cluster
Name String - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- data
Format String - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - database
Name String - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- eventhub
Consumer StringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- eventhub
Id String - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- location String
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- mapping
Rule StringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- name String
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- skip
First BooleanRecord - is the first record of every file ignored? Defaults to
false. - storage
Account StringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- table
Name String - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- blob
Storage stringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - cluster
Name string - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- data
Format string - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - database
Name string - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- eventhub
Consumer stringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- eventhub
Id string - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- location string
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- mapping
Rule stringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- name string
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- resource
Group stringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- skip
First booleanRecord - is the first record of every file ignored? Defaults to
false. - storage
Account stringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- table
Name string - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- blob_
storage_ strevent_ type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - cluster_
name str - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- data_
format str - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - database_
name str - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- eventhub_
consumer_ strgroup_ name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- eventhub_
id str - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- location str
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- mapping_
rule_ strname - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- name str
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- resource_
group_ strname - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- skip_
first_ boolrecord - is the first record of every file ignored? Defaults to
false. - storage_
account_ strid - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- table_
name str - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
- blob
Storage StringEvent Type - Specifies the blob storage event type that needs to be processed. Possible
Values are
Microsoft.Storage.BlobCreatedandMicrosoft.Storage.BlobRenamed. Defaults toMicrosoft.Storage.BlobCreated. - cluster
Name String - Specifies the name of the Kusto Cluster this data connection will be added to. Changing this forces a new resource to be created.
- data
Format String - Specifies the data format of the EventHub messages. Allowed values:
AVRO,CSV,JSON,MULTIJSON,PSV,RAW,SCSV,SINGLEJSON,SOHSV,TSVandTXT - database
Name String - Specifies the name of the Kusto Database this data connection will be added to. Changing this forces a new resource to be created.
- eventhub
Consumer StringGroup Name - Specifies the Event Hub consumer group this data connection will use for ingestion. Changing this forces a new resource to be created.
- eventhub
Id String - Specifies the resource id of the Event Hub this data connection will use for ingestion. Changing this forces a new resource to be created.
- location String
- The location where the Kusto Database should be created. Changing this forces a new resource to be created.
- mapping
Rule StringName - Specifies the mapping rule used for the message ingestion. Mapping rule must exist before resource is created.
- name String
- The name of the Kusto Event Grid Data Connection to create. Changing this forces a new resource to be created.
- resource
Group StringName - Specifies the Resource Group where the Kusto Database should exist. Changing this forces a new resource to be created.
- skip
First BooleanRecord - is the first record of every file ignored? Defaults to
false. - storage
Account StringId - Specifies the resource id of the Storage Account this data connection will use for ingestion. Changing this forces a new resource to be created.
- table
Name String - Specifies the target table name used for the message ingestion. Table must exist before resource is created.
Import
Kusto Event Grid Data Connections can be imported using the resource id, e.g.
$ pulumi import azure:kusto/eventGridDataConnection:EventGridDataConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/Clusters/cluster1/Databases/database1/DataConnections/dataConnection1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi