Skip to content
Docs Try Aspire

withHostPort

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

Signature

method withHostPort builder
Sets the host port for PostgreSQL
withHostPort(port: number): PostgresServerResource
port number
PostgresServerResource

Applies to

This function is an extension method on the following types: