Edit

Deploy Azure SQL Database for free

Try Azure SQL Database at no cost with the free tier. For each database, you get 100,000 vCore seconds, 32 GB of data, and 32 GB of backup storage free per month for the lifetime of your subscription. Each Azure subscription allows you to create up to 10 free tier General Purpose databases.

Tip

To get started and quickly create a new free Azure SQL Database, visit the Azure SQL hub at aka.ms/azuresqlhub. In the Create a database pane, select the Start free link.

Prerequisites

You need an Azure account and subscription. Unlike the previous Azure free account offer, the free tier is available with most Azure subscription types. Microsoft Azure for Students Starter isn't supported.

Create a database

Choose the Azure portal, Azure CLI, PowerShell, or an agent prompt to create a free tier database.

Use the Azure portal to create the new free Azure SQL Database. To create a free tier database, follow these steps:

  1. Go to Azure SQL hub at aka.ms/azuresqlhub.

  2. In the pane Create a database, select Start free.

  3. On the Basics tab:

    1. Under Project details:
      • Select your Subscription. Your current subscription is already selected.
      • An existing Resource Group is already selected. You can select a different resource group or create a new one.
    2. Under Database details:
      • Use the automatically created unique Database name, or provide a new name.
      • An existing logical Server is already selected. You can select a different logical server or create a new one.

    The Cost summary card on the right side of the page shows an Estimated Cost/Month of zero. The database is created with default settings, including the option to pause the database when the free limits are reached. You can change these database settings later.

  4. Select Review + create.

  5. Review and select Create.

Verify the deployment

After creation finishes, confirm that:

  • The database is online in the intended subscription, resource group, and logical server.
  • The database uses the free tier. In Azure CLI output, useFreeLimit is true.
  • The behavior at the monthly free limit matches your choice. The creation examples in this article use AutoPause; BillOverUsage enables paid overages.

Use the database's Overview and Compute + storage pages in the Azure portal, az sql db show, or Get-AzSqlDatabase to check the configuration.

Query the database

After you create the database, connect to it with the tool or language of your choice. For a guided first query, see Query the database.

Monitor and track service usage

Track free usage

Use the Azure portal to track the free amount remaining or consumed:

  1. On the database Overview tab, you see a Free monthly vCore amount entry:

    Screenshot from the Azure portal of free monthly vCore seconds amount remaining.

  2. Select the seconds remaining amount. The Metrics chart launches where you can look at Free amount remaining or Free amount consumed metrics.

On the Metrics tab, you can also create an alert rule at no cost. Use the Free amount remaining metric to send an alert when the amount is less than 10,000 vCore seconds (10% of the monthly limit), so you know when you're running out for the month.

Monitor with Database Hub (preview)

Optionally, use Database Hub in Microsoft Fabric (preview) for an estate-wide view of Azure SQL databases that you have permission to access. It's available with a Fabric Free license and doesn't require Fabric capacity. Your databases remain in their existing Azure subscriptions.

For setup and preview prerequisites, see Monitor a Microsoft SQL database. To add performance data, see Enable performance monitoring for Microsoft SQL.

Considerations and limitations

The following considerations and limitations apply to Azure SQL Database free tier databases:

  • The free tier uses the same fully managed General Purpose infrastructure as a paid database, but it doesn't include a service-level agreement (SLA). Use it primarily for development and proof-of-concept scenarios.
  • Choose the behavior for when you reach the monthly free limit:
    • Auto-pause the database until next month stops charges, but the database is inaccessible until the allowance resets at the start of the next calendar month.
    • Continue using database for additional charges keeps the database online and bills overages at standard General Purpose serverless rates. You can't switch back to the auto-pause option.
  • The free tier databases automatically pause after 15 minutes of inactivity. The auto-pause delay is fixed and can't be changed, regardless of the selected behavior when the monthly free limit is reached.
  • Disconnect querying tools such as SQL Server Management Studio, including the Object Explorer, when you're done. An open connection prevents auto-pause and continues to consume vCore seconds. If the database doesn't auto-pause, review features that prevent auto-pause.
  • You can apply the free tier only to a new database. You can't restore or convert an existing database to the free tier.
  • If you use Advanced configuration, the region selected for the first free tier database applies to all free tier databases in that subscription and can't be changed.

For backup, scaling, copying, and feature compatibility details, see the Azure SQL Database free tier FAQ.

Upgrade to Hyperscale

As your workload grows, you can upgrade your existing free tier database to Hyperscale. The guide covers prerequisites, separate updates to disable the free tier and convert the database, and verification.

Allowing paid overages doesn't disable the free tier. Leaving the free tier is permanent for this database, and paid General Purpose usage can accrue even if the subsequent Hyperscale conversion fails. Review the upgrade guide before making changes.