# AzureSqlDatabaseResource

- Module: [Aspire.Hosting.Azure.Sql](/reference/api/typescript/aspire.hosting.azure.sql.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

A resource that represents an Azure SQL database. This is a child resource of an {@ats-ref type:AzureSqlServerResource}.

## Definition

```typescript
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

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the connection string expression for the Azure SQL database.
- `databaseName`: `string` `get` -- Gets the database name.
- `isContainer`: `boolean` `get` -- Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
- `jdbcConnectionString`: `ReferenceExpression` `get` -- Gets the JDBC connection string for the Azure SQL database.
- `parent`: [AzureSqlServerResource](/reference/api/typescript/aspire.hosting.azure.sql/azuresqlserverresource.md) `get` -- Gets the parent Azure SQL Database (server) resource.
- `uriExpression`: `ReferenceExpression` `get` -- Gets the connection URI expression for the Azure SQL database.

## Methods

- [withDefaultAzureSku](/reference/api/typescript/aspire.hosting.azure.sql/azuresqldatabaseresource/withdefaultazuresku.md) -- `method` -- 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.
    ```typescript
  withDefaultAzureSku(): AzureSqlDatabaseResource
  ```
