Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureSqlDatabaseResource

Handle
📦 Aspire.Hosting.Azure.Sql v17.0.0

A resource that represents an Azure SQL database. This is a child resource of an AzureSqlServerResource.

type AzureSqlDatabaseResource interface {
ExpressionValue
Resource
ResourceWithConnectionString
ResourceWithParent
}

Properties

propertyConnectionStringExpression*ReferenceExpressionget
Gets the connection string expression for the Azure SQL database.
ConnectionStringExpression() *ReferenceExpression
propertyDatabaseNamestringget
Gets the database name.
DatabaseName() (string, error)
propertyIsContainerboolget
Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
IsContainer() (bool, error)
propertyJdbcConnectionString*ReferenceExpressionget
Gets the JDBC connection string for the Azure SQL database.
JdbcConnectionString() *ReferenceExpression
propertyParentAzureSqlServerResourceget
Gets the parent Azure SQL Database (server) resource.
Parent() AzureSqlServerResource
propertyResourceTypeDisplayNamestringget
Gets the ResourceTypeDisplayName property
ResourceTypeDisplayName() (string, error)
propertyUriExpression*ReferenceExpressionget
Gets the connection URI expression for the Azure SQL database.
UriExpression() *ReferenceExpression

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

The resource builder.

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