AzureKustoBuilderExtensions Methods
AddAzureKustoCluster(IDistributedApplicationBuilder, string) Section titled AddAzureKustoCluster(IDistributedApplicationBuilder, string)extensionIResourceBuilder<AzureKustoClusterResource> public static class AzureKustoBuilderExtensions{ public static IResourceBuilder<AzureKustoClusterResource> AddAzureKustoCluster( this IDistributedApplicationBuilder builder, string name) { // ... }}Parameters
builderIDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder .namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.Returns
IResourceBuilder<AzureKustoClusterResource> A reference to the ApplicationModel.IResourceBuilder`1 .Remarks
When adding an Azure to your application model the resource can then be referenced by other resources using the resource name. When the dependent resource is using the extension method Resource then the dependent resource will wait until the Kusto database is available.
By default references to the Azure Data Explorer database resources will be assigned the following roles: - Kusto
AddReadWriteDatabase(IResourceBuilder<AzureKustoClusterResource>, string, string?) Section titled AddReadWriteDatabase(IResourceBuilder<AzureKustoClusterResource>, string, string?)extensionIResourceBuilder<AzureKustoReadWriteDatabaseResource> public static class AzureKustoBuilderExtensions{ public static IResourceBuilder<AzureKustoReadWriteDatabaseResource> AddReadWriteDatabase( this IResourceBuilder<AzureKustoClusterResource> builder, string name, string? databaseName = null) { // ... }}Parameters
builderIResourceBuilder<AzureKustoClusterResource> The Kusto server resource builder.namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.databaseName string?optionalThe name of the database. If not provided, this defaults to the same value as name.Returns
IResourceBuilder<AzureKustoReadWriteDatabaseResource> A reference to the ApplicationModel.IResourceBuilder`1 .RunAsEmulator(IResourceBuilder<AzureKustoClusterResource>, Action<IResourceBuilder<AzureKustoEmulatorResource>>) Section titled RunAsEmulator(IResourceBuilder<AzureKustoClusterResource>, Action<IResourceBuilder<AzureKustoEmulatorResource>>)extensionIResourceBuilder<AzureKustoClusterResource> public static class AzureKustoBuilderExtensions{ public static IResourceBuilder<AzureKustoClusterResource> RunAsEmulator( this IResourceBuilder<AzureKustoClusterResource> builder, Action<IResourceBuilder<AzureKustoEmulatorResource>>? configureContainer = null) { // ... }}Parameters
builderIResourceBuilder<AzureKustoClusterResource> The resource builder to configure.configureContainer Action<IResourceBuilder<AzureKustoEmulatorResource>> optional Optional action to configure the Kusto emulator container. Returns
IResourceBuilder<AzureKustoClusterResource> The resource builder.Remarks
WithCreationScript(IResourceBuilder<AzureKustoReadWriteDatabaseResource>, string) Section titled WithCreationScript(IResourceBuilder<AzureKustoReadWriteDatabaseResource>, string)extensionIResourceBuilder<AzureKustoReadWriteDatabaseResource> public static class AzureKustoBuilderExtensions{ public static IResourceBuilder<AzureKustoReadWriteDatabaseResource> WithCreationScript( this IResourceBuilder<AzureKustoReadWriteDatabaseResource> builder, string script) { // ... }}Parameters
builderIResourceBuilder<AzureKustoReadWriteDatabaseResource> The resource builder to configure.scriptstringKQL script to create databases, tables, or data.Returns
IResourceBuilder<AzureKustoReadWriteDatabaseResource> The resource builder.Remarks
WithHostPort(IResourceBuilder<AzureKustoEmulatorResource>, int) Section titled WithHostPort(IResourceBuilder<AzureKustoEmulatorResource>, int)extensionIResourceBuilder<AzureKustoEmulatorResource> public static class AzureKustoBuilderExtensions{ public static IResourceBuilder<AzureKustoEmulatorResource> WithHostPort( this IResourceBuilder<AzureKustoEmulatorResource> builder, int port) { // ... }}Parameters
builderIResourceBuilder<AzureKustoEmulatorResource> Kusto emulator resource builder.portintHost port to use.Returns
IResourceBuilder<AzureKustoEmulatorResource> An ApplicationModel.IResourceBuilder`1 for the AzureKustoEmulatorResource .