Skip to content
DocsTry Aspire
DocsTry

withDataVolume

Method
📦 Aspire.Hosting.SqlServer v13.5.3
interface SqlServerServerResource {
// ... omitted for brevity
withDataVolume(
name?: string,
isReadOnly?: boolean): SqlServerServerResource;
}

Signature

methodwithDataVolumebuilder
Adds a named volume for the data folder to a SQL Server resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): SqlServerServerResource
namestringoptional
isReadOnlybooleanoptional= False
SqlServerServerResource

Applies to

This method applies to the following types: