# withDataVolume

- Module: [CommunityToolkit.Aspire.Hosting.Floci](/reference/api/typescript/communitytoolkit.aspire.hosting.floci.md)
- Version: `13.6.1`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Configures a named data volume for persistent Floci Azure state.

## Definition

```typescript
interface FlociAzureContainerResource {
  // ... omitted for brevity
  withDataVolume(
    name: string,
    isReadOnly?: boolean): FlociAzureContainerResource
}
```

## Parameters

- `name` (`string`)
- `isReadOnly` (`boolean`) `optional` `= False`

## Returns

[FlociAzureContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md) `builder`

## Applies to

- [FlociAzureContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.floci/flociazurecontainerresource.md)
