# withCreationScript

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

Defines the script used to create the database.

## Definition

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

## Parameters

- `script` (`string`)

## Returns

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

## Applies to

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