Azure SQL Database
Azure SQL Database needs a card, and its always-free offer gives up to 10 databases 100,000 vCore-seconds and 32 GB each, auto-pausing at the limit until next month unless you choose extra charges.
Azure SQL Database is a managed SQL Server database in the Azure cloud. It is for developers who want a SQL Server engine with patching, backups, and monitoring handled for them.
Is it a fit?
Good fit
Use it for development, prototyping, or learning when you want a managed SQL Server database on Azure that pauses itself when the free limits run out.
- prototyping and learning
- development and testing
- small SQL Server apps
Not a fit
Skip it if you need more than the monthly free compute, a non-serverless tier, or an elastic pool or failover group. Skip it for non-SQL engines.
- You need more compute than the free monthly amount
- You need an elastic pool or failover group
- You need a non-SQL engine
You create the database in the Azure portal and query it with the portal query editor, SQL Server Management Studio, VS Code, or sqlcmd. It suits people who want a free SQL Server to learn or prototype on.
What the free plan gives you
The free offer lasts for the lifetime of your subscription. Each database gets 100,000 vCore seconds of serverless compute, 32 GB of data storage, and 32 GB of backup storage every month. You can create up to 10 General Purpose databases per subscription.
The databases run on the same managed platform as paid ones, with patching, backups, and monitoring handled for you. With free-limit auto-pause, the maximum is 4 vCores and 32 GB of data per database. Your allowance renews at the start of each calendar month.
When you hit a limit
You choose what happens in the Behavior when free limit reached setting. The default option auto-pauses the database until the start of the next calendar month. The other option keeps the database online, and Azure charges the extra vCore use and storage to your billing method at standard serverless rates.
You are not charged unless you pick that second option and go over. Once you pick it, you cannot switch back to auto-pause. Azure sign-up asks for a phone number and a credit or debit card (not prepaid) to verify your identity. It may place a temporary one-dollar hold, and it does not charge you unless you move to pay-as-you-go.
Gotchas
- Databases auto-pause after a fixed 15 minutes of inactivity, including when paid overages are enabled. Open connections from tools such as SQL Server Management Studio can prevent idle auto-pause and use more compute.
- Point-in-time restore keeps seven days, and long-term backup retention is not available with auto-pause on. Auto-pause uses locally redundant backups. Supporting app hosting and external AI inference have separate costs.
- You cannot copy the free database, put it in an elastic pool or failover group, or restore or convert an existing database to the free offer. Data Sync, Elastic Jobs, and DNS aliases are unavailable. In Advanced configuration, the first free database fixes the region for all free databases in that subscription.
Alternatives in this atlas
- Azure PostgreSQL Flexible Server: when you prefer PostgreSQL on Azure.
- Azure Cosmos DB: when you need a NoSQL database on Azure.
- Cloudflare D1: when you want a small SQL database without an Azure subscription.
Questions people ask
Is Azure SQL Database free?
Yes, within a monthly allowance. Each of up to 10 databases per subscription gets 100,000 vCore seconds, 32 GB of data, and 32 GB of backup storage free every month.
What happens when the free limit runs out?
By default the database auto-pauses until the next calendar month. You can instead choose to keep it online and pay standard serverless rates for the extra use.
Can I use the Azure SQL free offer without an Azure free account?
Yes. The offer works with most Azure subscription types, excluding Azure for Students Starter. You still need an Azure account and subscription.
How to get started
- Create an Azure account and subscription (card verification applies to Azure sign-up).
- Open the Azure SQL hub at aka.ms/azuresqlhub and, in the Create a database pane, select Start free.
- On the Basics tab, check that the Cost summary card shows an Estimated Cost/Month of zero; the default settings pause the database at the free limits.
- Keep the preselected logical server or pick another, then choose Review + create and Create.
- Open the Query editor in the Azure portal, or connect with SQL Server Management Studio, the MSSQL extension for VS Code, or `sqlcmd`.
Other free database options
Same category, safest first.