# AzureKustoClusterResource

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

## 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 ClusterUri property
- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the ConnectionStringExpression property
- `isEmulator`: `boolean` `get` -- Gets the IsEmulator property
- `nameOutputReference`: `BicepOutputReference` `get` -- Gets the NameOutputReference property
- `uriExpression`: `ReferenceExpression` `get` -- Gets the UriExpression property

## Methods

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