# AzureKustoClusterResource

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/typescript/aspire.hosting.azure.kusto.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

A resource that represents a Kusto cluster.

## Definition

```typescript
interface AzureKustoClusterResource
  extends IAzureResource,
    IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithEndpoints,
    IResourceWithParameters,
    IValueProvider,
    IValueWithReferences {
  readonly clusterUri: BicepOutputReference;
  readonly connectionStringExpression: ReferenceExpression;
  readonly isEmulator: boolean;
  readonly nameOutputReference: BicepOutputReference;
  readonly uriExpression: ReferenceExpression;
  addReadWriteDatabase(
      name: string,
      databaseName?: string): AzureKustoReadWriteDatabaseResource;
  runAsEmulator(configureContainer?: (obj: AzureKustoEmulatorResource) => Promise<void>): AzureKustoClusterResource;
}
```

## Properties

- `clusterUri`: `BicepOutputReference` `get` -- Gets the cluster URI output reference for the Azure Kusto cluster.
- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the ConnectionStringExpression property
- `isEmulator`: `boolean` `get` -- Gets whether the resource is running the local emulator.
- `nameOutputReference`: `BicepOutputReference` `get` -- Gets the "name" output reference for the resource.
- `uriExpression`: `ReferenceExpression` `get` -- Gets the connection URI expression for the Kusto cluster.

## Methods

- [addReadWriteDatabase](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoclusterresource/addreadwritedatabase.md) -- `method` -- Adds a Kusto read-write database to the application model.
    ```typescript
  addReadWriteDatabase(name: string, databaseName?: string): AzureKustoReadWriteDatabaseResource
  ```
- [runAsEmulator](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoclusterresource/runasemulator.md) -- `method` -- Configures the Kusto resource to run as an emulator using the Kustainer container.
    ```typescript
  runAsEmulator(configureContainer?: (obj: AzureKustoEmulatorResource) => Promise<void>): AzureKustoClusterResource
  ```
