Skip to content
Docs Try Aspire
Docs Try

addDatabase

Method
📦 Aspire.Hosting.Azure.Sql v13.4.0
interface AzureSqlServerResource {
// ... omitted for brevity
addDatabase(
name: string,
databaseName?: string): AzureSqlDatabaseResource;
}

Signature

method addDatabase builder
Adds an Azure SQL Database to the application model. The Free Offer option will be used when deploying the resource in Azure
addDatabase(
name: string,
databaseName?: string): AzureSqlDatabaseResource
name string
databaseName string optional
AzureSqlDatabaseResource

Applies to

This method applies to the following types: