Skip to content
Docs Try Aspire
Docs Try

AzureSqlDatabaseResource

Handle
📦 Aspire.Hosting.Azure.Sql v13.4.0
interface AzureSqlDatabaseResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
AzureSqlServerResource]],
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly databaseName: string;
readonly isContainer: boolean;
readonly jdbcConnectionString: ReferenceExpression;
readonly parent: AzureSqlServerResource;
readonly uriExpression: ReferenceExpression;
withDefaultAzureSku(): AzureSqlDatabaseResource;
}

Properties

property connectionStringExpression ReferenceExpression get
Gets the connection string expression for the Azure SQL database.
property databaseName string get
Gets the database name.
property isContainer boolean get
Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
property jdbcConnectionString ReferenceExpression get
Gets the JDBC connection string for the Azure SQL database.
property parent AzureSqlServerResource get
Gets the parent Azure SQL Database (server) resource.
property uriExpression ReferenceExpression get
Gets the connection URI expression for the Azure SQL database.

Methods

method withDefaultAzureSku builder
Configures the Azure SQL Database to be deployed use the default SKU provided by Azure. Please be aware that the Azure default Sku might not take advantage of the free offer.
withDefaultAzureSku(): AzureSqlDatabaseResource
AzureSqlDatabaseResource