Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzurePostgresFlexibleServer

Method
📦 Aspire.Hosting.Azure.PostgreSQL v17.0.0
func (DistributedApplicationBuilder) AddAzurePostgresFlexibleServer(name string) AzurePostgresFlexibleServerResource

Signature

methodAddAzurePostgresFlexibleServerbuilder
Adds an Azure PostgreSQL Flexible Server resource to the application model.
AddAzurePostgresFlexibleServer(name string) AzurePostgresFlexibleServerResource
namestringThe name of the resource.
AzurePostgresFlexibleServerResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder