# Aspire.Hosting.Azure.Sql

- Module: `Aspire.Hosting.Azure.Sql`
- Version: `13.6.0`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)
- Functions: `6`
- Types: `2`

## Types

- [AzureSqlDatabaseResource](/reference/api/typescript/aspire.hosting.azure.sql/azuresqldatabaseresource.md) -- `handle` - 7 members -- A resource that represents an Azure SQL database. This is a child resource of an {@ats-ref type:AzureSqlServerResource}.
- [AzureSqlServerResource](/reference/api/typescript/aspire.hosting.azure.sql/azuresqlserverresource.md) -- `handle` - 15 members -- Represents an Azure Sql Server resource.

## Functions

- [addAzureSqlServer](/reference/api/typescript/aspire.hosting.azure.sql/addazuresqlserver.md) -- `method` -- Adds an Azure SQL Database (server) resource to the application model.
- [addDatabase](/reference/api/typescript/aspire.hosting.azure.sql/adddatabase.md) -- `method` -- Adds an Azure SQL Database to the application model. The Free Offer option will be used when deploying the resource in Azure
- [runAsContainer](/reference/api/typescript/aspire.hosting.azure.sql/runascontainer.md) -- `method` -- Configures an Azure SQL Database (server) resource to run locally in a container.
- [withAdminDeploymentScriptStorage](/reference/api/typescript/aspire.hosting.azure.sql/withadmindeploymentscriptstorage.md) -- `method` -- Configures the Azure SQL Server to use the specified storage account for deployment script execution.
- [withAdminDeploymentScriptSubnet](/reference/api/typescript/aspire.hosting.azure.sql/withadmindeploymentscriptsubnet.md) -- `method` -- Configures the Azure SQL Server to use the specified subnet for deployment script execution.
- [withDefaultAzureSku](/reference/api/typescript/aspire.hosting.azure.sql/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.
