# AzureKustoClusterResource

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

## Definition

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

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the ConnectionStringExpression property
- `isEmulator`: `boolean` `get` -- Gets the IsEmulator property
- `name`: `string` `get` -- Gets the Name property
- `outputs`: `Dict<string,any>` `get` -- Gets the Outputs property
- `parameters`: `Dict<string,any>` `get` -- Gets the Parameters property
- `secretOutputs`: `Dict<string,string>` `get` -- Gets the SecretOutputs 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
  ```
