Namespace Pulumi.Azure.Kusto
Classes
Cluster
Manages a Kusto (also known as Azure Data Explorer) Cluster
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "East US",
});
var example = new Azure.Kusto.Cluster("example", new Azure.Kusto.ClusterArgs
{
Location = rg.Location,
ResourceGroupName = rg.Name,
Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
{
Name = "Standard_D13_v2",
Capacity = 2,
},
Tags =
{
{ "Environment", "Production" },
},
});
}
}
ClusterArgs
ClusterState
Database
Manages a Kusto (also known as Azure Data Explorer) Database
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "East US",
});
var cluster = new Azure.Kusto.Cluster("cluster", new Azure.Kusto.ClusterArgs
{
Location = rg.Location,
ResourceGroupName = rg.Name,
Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
{
Name = "Standard_D13_v2",
Capacity = 2,
},
});
var database = new Azure.Kusto.Database("database", new Azure.Kusto.DatabaseArgs
{
ResourceGroupName = rg.Name,
Location = rg.Location,
ClusterName = cluster.Name,
HotCachePeriod = "P7D",
SoftDeletePeriod = "P31D",
});
}
}
DatabaseArgs
DatabasePrincipal
Manages a Kusto (also known as Azure Data Explorer) Database Principal
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(Azure.Core.GetClientConfig.InvokeAsync());
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "East US",
});
var cluster = new Azure.Kusto.Cluster("cluster", new Azure.Kusto.ClusterArgs
{
Location = rg.Location,
ResourceGroupName = rg.Name,
Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
{
Name = "Standard_D13_v2",
Capacity = 2,
},
});
var database = new Azure.Kusto.Database("database", new Azure.Kusto.DatabaseArgs
{
ResourceGroupName = rg.Name,
Location = rg.Location,
ClusterName = cluster.Name,
HotCachePeriod = "P7D",
SoftDeletePeriod = "P31D",
});
var principal = new Azure.Kusto.DatabasePrincipal("principal", new Azure.Kusto.DatabasePrincipalArgs
{
ResourceGroupName = rg.Name,
ClusterName = cluster.Name,
DatabaseName = azurerm_kusto_database.Test.Name,
Role = "Viewer",
Type = "User",
ClientId = current.Apply(current => current.TenantId),
ObjectId = current.Apply(current => current.ClientId),
});
}
}
DatabasePrincipalArgs
DatabasePrincipalState
DatabaseState
EventhubDataConnection
Manages a Kusto (also known as Azure Data Explorer) EventHub Data Connection
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "East US",
});
var cluster = new Azure.Kusto.Cluster("cluster", new Azure.Kusto.ClusterArgs
{
Location = rg.Location,
ResourceGroupName = rg.Name,
Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
{
Name = "Standard_D13_v2",
Capacity = 2,
},
});
var database = new Azure.Kusto.Database("database", new Azure.Kusto.DatabaseArgs
{
ResourceGroupName = rg.Name,
Location = rg.Location,
ClusterName = cluster.Name,
HotCachePeriod = "P7D",
SoftDeletePeriod = "P31D",
});
var eventhubNs = new Azure.EventHub.EventHubNamespace("eventhubNs", new Azure.EventHub.EventHubNamespaceArgs
{
Location = rg.Location,
ResourceGroupName = rg.Name,
Sku = "Standard",
});
var eventhub = new Azure.EventHub.EventHub("eventhub", new Azure.EventHub.EventHubArgs
{
NamespaceName = eventhubNs.Name,
ResourceGroupName = rg.Name,
PartitionCount = 1,
MessageRetention = 1,
});
var consumerGroup = new Azure.EventHub.ConsumerGroup("consumerGroup", new Azure.EventHub.ConsumerGroupArgs
{
NamespaceName = eventhubNs.Name,
EventhubName = eventhub.Name,
ResourceGroupName = rg.Name,
});
var eventhubConnection = new Azure.Kusto.EventhubDataConnection("eventhubConnection", new Azure.Kusto.EventhubDataConnectionArgs
{
ResourceGroupName = rg.Name,
Location = rg.Location,
ClusterName = cluster.Name,
DatabaseName = database.Name,
EventhubId = azurerm_eventhub.Evenhub.Id,
ConsumerGroup = consumerGroup.Name,
TableName = "my-table",
MappingRuleName = "my-table-mapping",
DataFormat = "JSON",
});
//(Optional)
}
}