Skip to content
DocsTry Aspire
DocsTry

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

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the Azure SQL database.
propertydatabaseNamestringget
Gets the database name.
propertyisContainerbooleanget
Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
propertyjdbcConnectionStringReferenceExpressionget
Gets the JDBC connection string for the Azure SQL database.
propertyparentAzureSqlServerResourceget
Gets the parent Azure SQL Database (server) resource.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the Azure SQL database.

Methods

methodwithDefaultAzureSkubuilder
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