# withClusterId

- Module: [Aspire.Hosting.Orleans](/reference/api/typescript/aspire.hosting.orleans.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Sets the ClusterId of the Orleans service.

## Definition

```typescript
interface OrleansService {
  // ... omitted for brevity
  withClusterId(clusterId: string): OrleansService
}
```

## Parameters

- `clusterId` (`string`)

## Returns

[OrleansService](/reference/api/typescript/aspire.hosting.orleans/orleansservice.md)

## Applies to

- [OrleansService](/reference/api/typescript/aspire.hosting.orleans/orleansservice.md)
