Skip to content
Docs Try Aspire

AzurePostgresFlexibleServerResource.addDatabase

Method
📦 Aspire.Hosting.Azure.PostgreSQL v13.2.0-preview.1.26159.1
interface AzurePostgresFlexibleServerResource {
// ... omitted for brevity
addDatabase(
name: string,
databaseName?: string): AzurePostgresFlexibleServerDatabaseResource;
}

Signature

method addDatabase builder
Adds an Azure PostgreSQL database
addDatabase(
name: string,
databaseName?: string): AzurePostgresFlexibleServerDatabaseResource
name string
databaseName string optional
AzurePostgresFlexibleServerDatabaseResource

Defined on

This method is defined on the following type: