Skip to content
DocsTry Aspire
DocsTry

SqlServerServerResource.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

Defined on

This method is defined on the following type: