Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzurePostgresFlexibleServerDatabaseResource

Handle
📦 Aspire.Hosting.Azure.PostgreSQL v17.0.0
type AzurePostgresFlexibleServerDatabaseResource interface {
ExpressionValue
Resource
ResourceWithConnectionString
ResourceWithParent
}

Methods

methodWithPostgresMcpbuilder
Adds a Postgres MCP server container and configures it to connect to the database represented by builder.
WithPostgresMcp(options ...*WithPostgresMcpOptions) AzurePostgresFlexibleServerDatabaseResource
options...*WithPostgresMcpOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPostgresMcpOptions argument.

ConfigureContainerfunc(obj PostgresMcpContainerResource)callbackConfiguration callback for the Postgres MCP container resource.
ContainerName*stringThe name of the container (optional).
AzurePostgresFlexibleServerDatabaseResource

The resource builder.

Returns a handle; failures surface later via Err().