# AzureKustoBuilderExtensions

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Kusto](/reference/api/csharp/aspire.hosting.azure.kusto.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Azure.Kusto/AzureKustoBuilderExtensions.cs)

Extension methods for adding Kusto resources to the application model.

## Definition

```csharp
namespace Aspire.Hosting;

public static class AzureKustoBuilderExtensions
{
    // ...
}
```

## Methods

- [AddAzureKustoCluster(IDistributedApplicationBuilder, string)](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustobuilderextensions/methods.md#addazurekustocluster-idistributedapplicationbuilder-string) : `IResourceBuilder<AzureKustoClusterResource>` `extension` `ats export` -- Adds an Azure Data Explorer (Kusto) cluster resource to the application model.
- [AddReadWriteDatabase(IResourceBuilder<AzureKustoClusterResource>, string, string?)](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustobuilderextensions/methods.md#addreadwritedatabase-iresourcebuilder-azurekustoclusterresource-string-string) : `IResourceBuilder<AzureKustoReadWriteDatabaseResource>` `extension` `ats export` -- Adds a Kusto read-write database to the application model.
- [RunAsEmulator(IResourceBuilder<AzureKustoClusterResource>, Action<IResourceBuilder<AzureKustoEmulatorResource>>)](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustobuilderextensions/methods.md#runasemulator-iresourcebuilder-azurekustoclusterresource-action-iresourcebuilder-azurekustoemulatorresource) : `IResourceBuilder<AzureKustoClusterResource>` `extension` `ats export` -- Configures the Kusto resource to run as an emulator using the Kustainer container.
- [WithCreationScript(IResourceBuilder<AzureKustoReadWriteDatabaseResource>, string)](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustobuilderextensions/methods.md#withcreationscript-iresourcebuilder-azurekustoreadwritedatabaseresource-string) : `IResourceBuilder<AzureKustoReadWriteDatabaseResource>` `extension` `ats export` -- Defines the script used to create the database.
- [WithHostPort(IResourceBuilder<AzureKustoEmulatorResource>, int)](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustobuilderextensions/methods.md#withhostport-iresourcebuilder-azurekustoemulatorresource-int) : `IResourceBuilder<AzureKustoEmulatorResource>` `extension` `ats export` -- Configures the host port that the Kusto emulator listens on for HTTP query requests.
