Skip to content
Docs Try Aspire
Docs Try

withHostPort

Method
📦 Aspire.Hosting.SqlServer v13.4.0
interface SqlServerServerResource {
// ... omitted for brevity
withHostPort(port: number): SqlServerServerResource;
}

Signature

method withHostPort builder
Configures the host port that the SqlServer resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): SqlServerServerResource
port number
SqlServerServerResource

Applies to

This method applies to the following types: