Skip to content
Docs Try Aspire

SqlServerServerResource.withHostPort

Method
📦 Aspire.Hosting.Azure.Sql v13.2.0-preview.1.26159.1
interface SqlServerServerResource {
// ... omitted for brevity
withHostPort(port: number): SqlServerServerResource;
}

Signature

method withHostPort builder
Sets the host port for the SQL Server resource
withHostPort(port: number): SqlServerServerResource
port number
SqlServerServerResource

Defined on

This method is defined on the following type: