Skip to content
DocsTry Aspire
DocsTry

withHostPort

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

Signature

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

Applies to

This method applies to the following types: