# AzureKustoReadWriteDatabaseResource.withCreationScript

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/typescript/aspire.hosting.azure.kusto.md)
- Defined on: [AzureKustoReadWriteDatabaseResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`

Defines the script used to create the database.

## Definition

```typescript
interface AzureKustoReadWriteDatabaseResource {
  // ... omitted for brevity
  withCreationScript(script: string): AzureKustoReadWriteDatabaseResource;
}
```

## Signature

```typescript
withCreationScript(script: string): AzureKustoReadWriteDatabaseResource
```

## Parameters

- `script` (`string`)

## Returns

[AzureKustoReadWriteDatabaseResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource.md) `builder`

## Defined on

- [AzureKustoReadWriteDatabaseResource](/reference/api/typescript/aspire.hosting.azure.kusto/azurekustoreadwritedatabaseresource.md) -- `handle`
