Web Analytics

The Short Answer: Which Azure Database Is the Cheapest?

The cheapest Azure database depends on what you mean by “database.”

If you mean the lowest possible ongoing cost for a small relational application, Azure SQL Database can be extremely inexpensive because Microsoft currently offers a free Azure SQL Database offer with up to 10 General Purpose databases per subscription. Each eligible database includes 100,000 vCore seconds of serverless compute, 32 GB of data storage, and 32 GB of backup storage per month. The free offer has no time limit, subject to its monthly limits. (Microsoft Learn)

If you mean the cheapest standard paid managed database with continuously available compute, Azure Database for MySQL Flexible Server has a particularly low-cost Burstable option. Microsoft’s current India pricing page lists a B1s configuration with 1 vCore and 1 GiB of memory at approximately $6.205 per month on pay as you go, before applicable storage, backup, networking, taxes, and other charges. A B1ms configuration with 1 vCore and 2 GiB is listed at approximately $12.41 per month. (Microsoft Azure)

If you need PostgreSQL, Azure Database for PostgreSQL Flexible Server has a B1ms Burstable configuration listed at approximately $12.41 per month before storage, backup, networking, and other applicable charges. It also supports Stop/Start, meaning compute charges can be eliminated while the server is stopped, leaving storage and applicable backup costs. (Microsoft Azure)

If you need a NoSQL database with unpredictable or intermittent traffic, Azure Cosmos DB Serverless can be attractive because it bills according to request-unit consumption and storage without a provisioned-throughput minimum. Microsoft specifically describes the serverless model as suitable for low-traffic and intermittent workloads. (Microsoft Azure)

Therefore, there is no universally cheapest Azure database.

The practical answer is:

  • Cheapest for eligible small relational workloads: Azure SQL Database Free Offer.
  • Cheapest continuously provisioned managed relational option among common Azure database services: Azure Database for MySQL Flexible Server Burstable, depending on region and configuration.
  • Cheapest PostgreSQL option: Azure Database for PostgreSQL Flexible Server Burstable.
  • Potentially cheapest for sporadic NoSQL workloads: Azure Cosmos DB Serverless.
  • Cheapest overall for a workload that can tolerate self-management: a database running on a low-cost Azure compute resource may have a different economics profile, but it shifts administration, patching, backup, availability, and operational responsibility to you.

The most important lesson is that the database service with the lowest advertised compute price is not necessarily the database with the lowest total cost of ownership.

Why “Cheapest Azure Database” Is a More Complicated Question Than It Looks

Azure has several database technologies, purchasing models, service tiers, deployment options, and billing dimensions.

Two databases that appear similar can have very different monthly bills because of:

  • Compute capacity
  • Storage
  • Backup storage
  • Database operations
  • Request units
  • I/O
  • Network traffic
  • Data egress
  • High availability
  • Replication
  • Availability zones
  • Provisioned throughput
  • Serverless behavior
  • Auto-pause
  • Stop/start
  • Reserved capacity
  • Savings plans
  • Region
  • Currency
  • Taxes
  • Subscription agreement
  • Licensing requirements
  • Workload characteristics

This means asking “What is the cheapest Azure database?” without describing the workload is similar to asking “What is the cheapest car?”

A compact city car may be cheapest for commuting.

A larger vehicle could be cheaper for moving equipment.

An electric vehicle might have a higher purchase price but lower operating expenses.

The same principle applies to Azure databases.

A database that looks inexpensive per hour can become expensive if it requires permanent compute, high I/O, backups, replication, and substantial data transfer.

Conversely, a service with a higher unit price can be cheaper for a small application if it allows you to pay only when the application actually uses it.

Understanding Azure Database Pricing Before Comparing Services

Before comparing Azure database products, it is important to understand the major Azure billing models.

1. Provisioned Compute

Provisioned databases have a defined compute capacity.

You select resources such as:

  • vCores
  • Memory
  • Performance tier
  • Storage
  • I/O characteristics

The database generally continues running whether the application is busy or idle.

This model is often appropriate for:

  • Production applications
  • Predictable workloads
  • Business applications
  • High-availability systems
  • Databases requiring consistent performance
  • Applications with sustained traffic

The advantage is predictable performance.

The disadvantage is that you can pay for capacity even when application traffic is low.

2. Serverless Compute

Serverless changes the economics.

Instead of paying for a fixed amount of compute continuously, the platform can dynamically allocate compute according to demand.

Azure SQL Database serverless, for example, bills compute on a per-second basis according to actual resource usage, subject to minimum compute while the database is online. When the database is paused, compute charges stop and storage-related charges remain. (Microsoft Azure)

This can be particularly attractive for:

  • Development databases
  • Test environments
  • Small applications
  • Internal tools
  • Proofs of concept
  • Low-traffic websites
  • Applications with long idle periods
  • Unpredictable workloads

Serverless is not automatically cheaper.

If your database is busy most of the day, provisioned compute can be more economical.

3. Request-Based Billing

Some cloud databases use a consumption model.

Azure Cosmos DB Serverless is an important example.

Instead of maintaining provisioned throughput, serverless Cosmos DB charges according to request-unit consumption and storage. Microsoft states that serverless has no minimum operations or request units and is designed for workloads with low or intermittent traffic. (Microsoft Azure)

This can be powerful for applications where traffic is:

  • Low
  • Irregular
  • Bursty
  • Difficult to predict
  • Highly seasonal

However, a request-based model can become expensive if the application performs large numbers of database operations continuously.

4. Storage-Based Costs

Compute is only one part of database pricing.

You may also pay for:

  • Primary database storage
  • Backup storage
  • Additional backup retention
  • Premium storage
  • IOPS
  • Provisioned throughput
  • Replicas
  • Additional regions

For example, Azure Database for PostgreSQL Flexible Server separates compute, storage, and backup charges. Microsoft explains that compute is billed per vCore-hour, while storage and applicable backup storage are billed per GiB-month. (Microsoft Azure)

This is why comparing only compute prices can produce misleading conclusions.

Azure SQL Database: Often the Cheapest Choice for Small Relational Workloads

Azure SQL Database deserves special attention because of Microsoft’s current free offer.

The free offer provides up to 10 General Purpose Azure SQL databases per subscription, with each database receiving monthly allowances of:

  • 100,000 vCore seconds of compute
  • 32 GB of data storage
  • 32 GB of backup storage

The free offer is not merely a trial that expires after a short period. Microsoft currently describes it as free indefinitely within the applicable monthly limits. (Microsoft Learn)

That makes Azure SQL Database one of the most compelling choices for:

  • Small websites
  • Developer projects
  • Personal applications
  • Prototypes
  • Student projects
  • Internal tools
  • Small business applications
  • Development environments
  • Test environments
  • Early-stage SaaS products

For eligible workloads, the answer to “Which Azure database is the cheapest?” can therefore simply be:

Azure SQL Database can be free.

But there are important conditions.

How the Azure SQL Database Free Offer Works

The free database offer is based on monthly consumption limits.

Microsoft currently specifies:

  • 100,000 vCore seconds of serverless compute per database each month
  • 32 GB maximum data storage per database
  • 32 GB backup storage per database
  • Up to 10 free databases per subscription

Once the applicable free allowance is exhausted, additional usage depends on the billing choice and configuration. Microsoft also provides an option to stop the database until the next month when the free allowance is exhausted. (Microsoft Learn)

This makes monitoring important.

A database that is technically “free” can still become a billing concern if the application exceeds its included limits and is configured to continue consuming paid resources.

Why Azure SQL Database Serverless Is Attractive for Small Applications

Azure SQL Database serverless is specifically designed for databases with variable or intermittent utilization.

Microsoft states that serverless compute can automatically scale based on workload and bill compute per second. It can also automatically pause after inactivity, depending on the configuration. (Microsoft Azure)

Imagine a small business application used mainly from 9 AM to 6 PM.

During the night, the database may have almost no activity.

With conventional provisioned compute, the database can continue consuming compute capacity.

With serverless, the database can reduce compute consumption and eventually pause when the configured inactivity period is reached.

That can materially change the monthly economics.

Azure SQL Serverless Is Not Always the Cheapest

This distinction is important.

Suppose you have:

  • A high-traffic ecommerce website
  • Thousands of active users
  • Continuous queries
  • Background jobs
  • Analytics workloads
  • Constant database connections
  • Heavy transactional activity

A serverless database that remains active almost continuously may not provide the cost advantage you expect.

Microsoft explicitly notes that provisioned compute can be less expensive for databases with more uniform and substantial compute utilization. (Microsoft Azure)

Therefore:

Intermittent workload + serverless = potentially excellent economics.

Constant workload + provisioned compute = often better economics.

Azure Database for MySQL Flexible Server

Azure Database for MySQL Flexible Server is another strong candidate when cost is the priority.

Microsoft currently lists a Burstable B1s configuration with:

  • 1 vCore
  • 1 GiB memory
  • Approximately $6.205 per month pay as you go

The B1ms configuration provides:

  • 1 vCore
  • 2 GiB memory
  • Approximately $12.41 per month

These figures are based on the pricing currently displayed on Microsoft’s India pricing page and should be treated as indicative rather than universal. Actual pricing depends on region, agreement, currency, configuration, and additional resources. (Microsoft Azure)

Why MySQL Flexible Server Can Be Extremely Cheap

MySQL is widely used for:

  • WordPress
  • PHP applications
  • Laravel
  • WooCommerce
  • Small ecommerce applications
  • Content management systems
  • Web applications
  • Custom SaaS applications
  • Business portals

If your application already uses MySQL, moving to another database merely because its headline price is lower can create development and migration costs.

The cheapest database is often the one that meets your requirements with the least operational and application change.

Burstable Compute

Azure Database for MySQL Flexible Server includes Burstable compute configurations designed for workloads with flexible compute requirements.

This makes them particularly relevant for:

  • Development
  • Testing
  • Small production applications
  • Low-traffic websites
  • Internal applications
  • Early-stage startups
  • Lightweight APIs

The B1s option is especially notable because of its low advertised compute price. (Microsoft Azure)

But remember that the monthly compute figure is not necessarily the final Azure invoice.

You may also have:

  • Storage charges
  • Backup charges
  • IOPS-related charges
  • Networking charges
  • Data transfer charges
  • High availability costs

Azure Database for PostgreSQL Flexible Server

For PostgreSQL workloads, Azure Database for PostgreSQL Flexible Server is generally the obvious managed Azure choice.

Microsoft’s current pricing page lists the B1ms Burstable configuration at approximately $12.41 per month on pay as you go. (Microsoft Azure)

PostgreSQL Flexible Server is designed to provide:

  • Managed PostgreSQL
  • Flexible compute
  • Configurable maintenance
  • High availability options
  • Stop/start
  • Burstable SKUs
  • Independent storage scaling

Microsoft specifically highlights Stop/Start as a cost optimization capability because compute charges stop while the server is stopped, leaving storage and applicable backup costs. (Microsoft Azure)

Why Stop/Start Matters

Consider a development database used by a team only during working hours.

If it runs continuously for 24 hours a day, the organization pays for compute throughout the day.

If the team works approximately eight hours a day and the database can be stopped outside those hours, compute consumption can be substantially reduced.

The exact savings depend on the configuration and operational schedule.

This is one of the most practical ways to reduce the cost of a managed PostgreSQL database on Azure.

Azure Cosmos DB Serverless

Azure Cosmos DB is fundamentally different from traditional relational database services.

It is a globally distributed NoSQL database platform supporting multiple APIs and data models.

Its Serverless model is especially relevant when discussing the cheapest Azure database.

Microsoft describes Cosmos DB Serverless as a pay-per-request model with no minimum operations or provisioned request units. It is intended for low-traffic applications and intermittent workloads. (Microsoft Azure)

That makes it potentially attractive when:

  • Traffic is unpredictable
  • The application has long idle periods
  • Request volume is low
  • You do not want to provision throughput
  • You want automatic handling of bursts

When Cosmos DB Serverless Can Be Cheaper

Suppose you have an application that receives:

  • A few hundred requests in the morning
  • Almost no traffic during the afternoon
  • A short traffic spike in the evening
  • Minimal activity overnight

Provisioning a constant throughput level may result in paying for capacity you do not use.

Serverless allows consumption to track actual database operations more closely.

This is one reason there is no single “cheapest Azure database.”

The correct answer depends on how the application behaves.

Azure Cosmos DB Free Tier

Cosmos DB also has a free-tier option.

Microsoft currently states that the free tier provides the first:

  • 1,000 RU/s of provisioned throughput
  • 25 GB of storage

for the lifetime of one Azure Cosmos DB account per Azure subscription, when the free tier is enabled on a new account. (Microsoft Azure)

This can make Cosmos DB highly attractive for development and small workloads.

However, the free tier and serverless model are not identical.

Microsoft notes that the free tier does not apply to serverless. (Microsoft Azure)

Therefore, you should select the billing model based on workload characteristics rather than assuming that “Cosmos DB free tier” and “Cosmos DB serverless” are interchangeable.

A Practical Azure Database Cost Comparison

The following comparison is more useful than simply asking which service has the lowest advertised hourly rate.

Azure database option Best cost scenario Typical reason to choose it
Azure SQL Database Free Offer Small eligible relational workloads Free monthly allowance
Azure SQL Database Serverless Intermittent SQL workloads Per-second compute and auto-pause
Azure Database for MySQL Flexible Server B1s Small MySQL applications Very low burstable compute price
Azure Database for MySQL Flexible Server B1ms Small applications needing more memory Low-cost managed MySQL
Azure Database for PostgreSQL Flexible Server B1ms Small PostgreSQL workloads Low-cost managed PostgreSQL
Azure Cosmos DB Serverless Low-volume NoSQL workloads Pay for consumed operations
Azure Cosmos DB Free Tier Small provisioned NoSQL workloads Free throughput and storage allowance
Provisioned Azure SQL Database Consistent workloads Predictable performance
PostgreSQL Flexible Server with Stop/Start Non-production workloads No compute billing while stopped
MySQL Flexible Server Small to medium MySQL systems Managed MySQL with flexible scaling

The important point is that these are not interchangeable database technologies.

Which Azure Database Is Cheapest for a Startup?

For a startup, the cheapest Azure database depends on the application’s architecture.

A startup with a conventional relational application might choose:

Azure SQL Database Free Offer

if the workload fits its limits.

A startup using Laravel, WordPress, or another MySQL-based platform might prefer:

Azure Database for MySQL Flexible Server

because compatibility and migration simplicity can outweigh small price differences.

A startup building a PostgreSQL-based application might choose:

Azure Database for PostgreSQL Flexible Server

because PostgreSQL is already part of its application architecture.

A startup developing an event-driven or document-oriented application may consider:

Azure Cosmos DB Serverless

when its request pattern makes consumption-based billing economical.

Cheapest Azure Database for Development

Development environments are often the easiest place to reduce database costs.

Developers frequently leave resources running when nobody is using them.

That creates unnecessary cloud expenditure.

For development databases, consider:

  • Azure SQL Database free offer
  • Azure SQL serverless
  • MySQL Flexible Server Burstable
  • PostgreSQL Flexible Server Burstable
  • PostgreSQL Stop/Start
  • Cosmos DB free tier
  • Cosmos DB Serverless
  • Local database emulators where appropriate

The right option depends on what the development environment is intended to reproduce.

Cheapest Azure Database for Testing

Testing has different requirements from development.

Some automated tests may require:

  • A real SQL engine
  • Real transactions
  • Stored procedures
  • Indexes
  • Authentication
  • Backup and restore behavior
  • Connection pooling
  • Production-like schema

Other tests may only need:

  • Mock data
  • An in-memory database
  • Local containers
  • A lightweight development instance

Cloud database costs can therefore be reduced by matching the test environment to the actual testing objective.

Do not automatically run a production-sized database for unit tests.

Cheapest Azure Database for a Small Website

For a small website, there are several possible answers.

WordPress or PHP/MySQL website

MySQL Flexible Server is a natural candidate.

The current Azure India pricing page shows a B1s Burstable option at approximately $6.205 per month for compute before other charges. (Microsoft Azure)

ASP.NET website

Azure SQL Database may be the better fit.

If the workload is small and eligible, the free Azure SQL Database offer can be particularly compelling. (Microsoft Learn)

PostgreSQL website

PostgreSQL Flexible Server is the obvious managed PostgreSQL choice.

NoSQL website

Cosmos DB Serverless may be worth evaluating when database operations are low and intermittent.

Cheapest Azure Database for Ecommerce

Ecommerce workloads deserve more caution.

An ecommerce database commonly stores:

  • Customers
  • Products
  • Categories
  • Orders
  • Order items
  • Payments
  • Discounts
  • Inventory
  • Shipping
  • Addresses
  • Tax information
  • Promotions
  • Product attributes

Relational integrity is often important.

That makes SQL Server, MySQL, or PostgreSQL suitable depending on the application’s architecture.

Cost should not be the only selection criterion.

A database failure can cost considerably more than the monthly database bill.

For ecommerce, evaluate:

  • Transaction reliability
  • Backup
  • Recovery
  • High availability
  • Monitoring
  • Performance
  • Connection capacity
  • Indexing
  • Scaling
  • Security
  • Compliance
  • Disaster recovery

Choosing the absolute cheapest SKU can be a false economy.

Cheapest Azure Database for SaaS

SaaS products introduce another variable: tenant growth.

At the beginning, a SaaS product may have:

  • 10 users
  • 50 users
  • 100 users
  • 1,000 users

Later, it might have:

  • 10,000 users
  • 100,000 users
  • Millions of requests

A database architecture that is inexpensive at launch may become inefficient at scale.

Therefore, SaaS teams should optimize for:

low initial cost + predictable scaling + manageable operational complexity.

Azure SQL Database serverless can be attractive for early-stage applications with intermittent activity.

PostgreSQL Flexible Server can be attractive for teams that need PostgreSQL compatibility.

MySQL Flexible Server can be appropriate for MySQL-based SaaS systems.

Cosmos DB can be valuable when the application’s data model and access patterns fit a distributed NoSQL architecture.

Cheapest Azure Database for a Personal Project

For a personal project, the Azure SQL Database free offer is particularly interesting if the application fits SQL Server requirements and the free allowance. Microsoft currently provides up to 10 eligible free databases per subscription, subject to the stated limits. (Microsoft Learn)

This can be useful for:

  • Portfolio projects
  • Learning projects
  • Demo applications
  • Small APIs
  • Personal dashboards
  • Proofs of concept
  • Coding experiments

Another option is Cosmos DB’s free tier, which provides a free allowance for provisioned throughput and storage on an eligible new account. (Microsoft Azure)

Cheapest Azure Database for Students

Students should focus on minimizing both direct cost and operational complexity.

A free Azure SQL Database allowance can be useful for learning relational database concepts.

Students learning PostgreSQL can use PostgreSQL Flexible Server and stop the server when it is not needed.

Students learning MySQL can similarly use a low-cost Burstable MySQL Flexible Server.

Students learning NoSQL can explore Cosmos DB’s free tier or emulator.

The best choice is therefore strongly related to the technology the student wants to learn.

Cheapest Azure Database for a Small API

For a small REST API, the database does not necessarily need substantial capacity.

A typical low-traffic API might require:

  • Small database
  • Low storage
  • Low CPU
  • Few connections
  • Occasional traffic
  • Basic backups

Possible choices include:

  • Azure SQL Database serverless
  • Azure SQL Database free offer
  • MySQL Flexible Server Burstable
  • PostgreSQL Flexible Server Burstable
  • Cosmos DB Serverless

For a relational API, Azure SQL serverless is particularly attractive when periods of inactivity are common. Microsoft specifically positions serverless for variable usage and intermittent workloads. (Microsoft Azure)

What Actually Determines Your Azure Database Bill?

A database bill can be broken into multiple dimensions.

Compute

Compute is usually the most obvious cost.

It can be measured through:

  • vCores
  • vCore-hours
  • vCore-seconds
  • Instance size
  • Provisioned throughput

Storage

Storage charges may apply based on:

  • Database size
  • Provisioned storage
  • Consumed storage
  • Storage tier

Backup

Managed databases generally provide backup functionality, but backup storage beyond included allowances or configured retention can create additional costs.

I/O

Some database platforms charge for I/O or include certain I/O capabilities within the service tier.

This matters particularly when applications perform:

  • Large scans
  • Heavy writes
  • Frequent updates
  • Analytics
  • Index maintenance

Network Egress

Moving data out of Azure can result in networking charges.

Microsoft’s PostgreSQL pricing documentation explicitly notes that standard networking charges apply for network egress. (Microsoft Azure)

Therefore, a database located in Azure can still generate networking costs if applications or users consume data across applicable network boundaries.

Why the Cheapest Database Is Not Always the Best Database

Suppose Database A costs $7 per month.

Database B costs $12 per month.

At first glance, Database A appears better.

But if your application is written specifically for PostgreSQL, using Database A might require:

  • Migration
  • Schema changes
  • Query rewriting
  • Driver changes
  • Testing
  • Developer time
  • New operational knowledge

If those activities cost hundreds or thousands of dollars, saving $5 per month is meaningless.

This leads to an important cloud-finance principle:

Optimize total cost, not just database SKU price.

Azure Database Total Cost of Ownership

Total cost of ownership includes more than the Azure invoice.

A useful framework is:

TCO = infrastructure cost + operations cost + development cost + migration cost + downtime risk + scaling cost

Each component matters.

Infrastructure Cost

This includes:

  • Compute
  • Storage
  • Backup
  • Networking
  • Replication
  • High availability

Operations Cost

Managed databases reduce operational responsibilities.

You still need:

  • Monitoring
  • Alerts
  • Query optimization
  • Access management
  • Cost monitoring
  • Backup verification
  • Performance analysis

But Azure manages significant portions of the underlying infrastructure.

Development Cost

The database must integrate with:

  • Backend code
  • APIs
  • Authentication
  • ORMs
  • Reporting tools
  • Data pipelines
  • Application frameworks

Compatibility matters.

Migration Cost

Moving from one database technology to another can be expensive.

Migration may involve:

  • Schema conversion
  • Data migration
  • Application changes
  • Testing
  • Downtime planning
  • Validation
  • Performance tuning

Azure Database Pricing in India

Because your Azure subscription may be billed in India, regional pricing deserves special attention.

Microsoft’s Azure pricing pages allow customers to select region and currency, and Microsoft states that displayed prices are estimates rather than formal quotations. Pricing can vary according to agreement, purchase date, currency conversion, and other factors. (Microsoft Azure)

For that reason, never publish an Azure database price as if it were a permanent worldwide price.

Instead, describe it as:

  • Current listed price
  • Indicative price
  • Region-specific price
  • Pay-as-you-go price
  • Before storage and ancillary charges

This is particularly important for SEO content because cloud pricing changes.

Azure Database Cost Optimization Strategies

Selecting the cheapest service is only the first step.

The biggest savings often come from optimizing how the database is used.

1. Choose the Smallest Appropriate SKU

Do not automatically select a large production tier.

Start with measured requirements.

Monitor:

  • CPU
  • Memory
  • IOPS
  • Connections
  • Query duration
  • Storage
  • Throughput

Then scale according to evidence.

2. Use Serverless for Intermittent Workloads

Azure SQL serverless can be a strong cost-saving mechanism for variable workloads.

It bills compute according to usage and can pause during inactivity when configured appropriately. (Microsoft Azure)

3. Stop Non-Production PostgreSQL Servers

PostgreSQL Flexible Server supports Stop/Start.

When stopped, compute billing stops, while applicable storage and backup charges remain. (Microsoft Azure)

This can be highly effective for:

  • Development
  • QA
  • Testing
  • Training
  • Demonstrations

4. Use Burstable SKUs

Burstable compute is designed for workloads that do not require sustained maximum CPU performance.

It can be particularly useful for:

  • Small websites
  • Development
  • Testing
  • Internal applications
  • Early-stage applications

5. Monitor Storage Growth

Database storage can grow silently.

Implement:

  • Storage alerts
  • Data retention policies
  • Archive strategies
  • Log cleanup
  • Temporary table cleanup
  • Historical data management

6. Optimize Queries

Poor SQL can increase resource consumption.

Examples include:

  • Missing indexes
  • Excessive joins
  • Unbounded queries
  • N+1 query patterns
  • Repeated queries
  • Large result sets
  • Inefficient sorting
  • Full table scans

Improving a query can sometimes save more money than changing database SKUs.

Azure SQL Database vs MySQL Flexible Server for Cost

This is one of the most useful comparisons.

Azure SQL Database

Best when:

  • You use Microsoft SQL Server
  • You develop with .NET
  • You need T-SQL
  • You need relational transactions
  • You want Azure SQL integration
  • Your workload qualifies for the free offer
  • You have intermittent usage

The free offer makes it exceptionally attractive for qualifying small workloads. (Microsoft Learn)

MySQL Flexible Server

Best when:

  • You use MySQL
  • You use WordPress
  • You use PHP
  • You use Laravel
  • You need MySQL compatibility
  • You want low-cost Burstable compute

The B1s configuration currently listed by Microsoft is approximately $6.205 per month for compute in the relevant pricing view. (Microsoft Azure)

Azure SQL Database vs PostgreSQL Flexible Server

Azure SQL is usually attractive to Microsoft-centric application stacks.

PostgreSQL Flexible Server is attractive for open-source PostgreSQL applications.

Choose PostgreSQL when you need:

  • PostgreSQL extensions
  • PostgreSQL-specific functionality
  • Existing PostgreSQL applications
  • PostgreSQL ecosystem compatibility
  • Open-source database portability

Choose Azure SQL when you need:

  • SQL Server compatibility
  • T-SQL
  • Microsoft-centric tooling
  • Azure SQL ecosystem integration

Cost should be evaluated only after technical compatibility is established.

MySQL vs PostgreSQL for Low-Cost Azure Applications

MySQL and PostgreSQL can both be cost-effective.

The difference is often less about the raw database engine and more about:

  • Application framework
  • Existing developer expertise
  • Query patterns
  • Required extensions
  • Database features
  • Scaling strategy
  • Managed service configuration

If the application already uses MySQL, changing to PostgreSQL purely to save a small monthly amount usually does not make financial sense.

Likewise, a PostgreSQL application should not be migrated to MySQL simply because one SKU looks cheaper.

Cosmos DB vs Relational Azure Databases

Cosmos DB can be cost-effective for the right workload, but it should not be considered a direct replacement for SQL databases.

Cosmos DB is designed around distributed NoSQL access patterns.

Relational databases provide:

  • Tables
  • Relationships
  • Joins
  • Referential integrity
  • SQL
  • Traditional transactions

Cosmos DB offers a different model.

Therefore, choosing Cosmos DB solely because it can be cheap under light traffic can create architectural problems if the application fundamentally requires relational behavior.

When Azure Cosmos DB Serverless Is the Cheapest Choice

Cosmos DB Serverless becomes particularly interesting when:

  • Requests are infrequent
  • Workloads are unpredictable
  • The application is document-oriented
  • You need NoSQL
  • You do not want provisioned throughput
  • You have low sustained traffic

Microsoft specifically identifies low-traffic and intermittent workloads as suitable for Cosmos DB Serverless. (Microsoft Azure)

When Azure SQL Database Is the Cheapest Choice

Azure SQL is particularly attractive when:

  • You need relational SQL
  • Your application is small
  • Your workload fits the free offer
  • You have intermittent usage
  • You want Microsoft-managed SQL
  • You are building a small .NET application
  • You need SQL Server compatibility

The free offer can significantly change the economics of small applications. (Microsoft Learn)

When MySQL Flexible Server Is the Cheapest Choice

MySQL Flexible Server is compelling when:

  • You already use MySQL
  • You need a low-cost managed MySQL service
  • Your workload fits a Burstable SKU
  • You want to avoid database administration
  • You need a conventional relational database
  • Your application is WordPress, PHP, Laravel, or another MySQL-based stack

The currently listed B1s compute price is approximately $6.205 per month in the relevant Microsoft pricing view. (Microsoft Azure)

When PostgreSQL Flexible Server Is the Cheapest Choice

PostgreSQL Flexible Server is attractive when:

  • PostgreSQL is required
  • You need PostgreSQL extensions
  • You have existing PostgreSQL applications
  • You can use Burstable compute
  • You can stop non-production environments
  • You want managed PostgreSQL

Microsoft currently lists B1ms Burstable compute at approximately $12.41 per month in the relevant pricing view. (Microsoft Azure)

What About Azure Database for MariaDB?

Azure Database for MariaDB should not automatically be considered when starting a new architecture.

Microsoft’s Azure database portfolio and service lifecycle should always be checked before committing to a database technology.

For new projects, organizations should generally prioritize currently supported, actively developed Azure database offerings rather than selecting a platform simply because it appears inexpensive.

The key lesson is:

Never optimize price before verifying service lifecycle and support status.

What About Azure SQL Managed Instance?

Azure SQL Managed Instance is powerful but generally not the first choice when the objective is the lowest database cost.

It is designed for workloads requiring broader SQL Server compatibility and instance-level capabilities.

It can make sense when you need:

  • SQL Server compatibility
  • Instance-level functionality
  • Migration of existing SQL Server workloads
  • Advanced enterprise capabilities

But for a tiny application, it is usually unnecessary complexity and cost.

What About Azure Database for PostgreSQL vs Running PostgreSQL Yourself?

You can theoretically run PostgreSQL on Azure compute.

That may reduce the database service premium.

However, you become responsible for more operational work, including:

  • OS maintenance
  • PostgreSQL installation
  • Patching
  • Backup configuration
  • Monitoring
  • Security hardening
  • High availability
  • Failover
  • Replication
  • Recovery testing
  • Capacity management

A self-managed database may have a lower infrastructure bill while having a higher operational cost.

This is why managed database pricing should not be compared directly with raw virtual machine pricing without accounting for labor.

Is Azure SQL Really Free?

For qualifying use under Microsoft’s current free offer, Azure SQL Database can be free within the monthly limits.

The current offer provides:

  • 100,000 vCore seconds
  • 32 GB storage
  • 32 GB backup storage
  • Up to 10 databases per subscription

Microsoft says the free database offer has no time limit, provided usage stays within the monthly allowances and applicable conditions. (Microsoft Learn)

However, “free” does not mean unlimited.

If your application requires more compute, storage, or backup capacity, additional charges can apply depending on your configuration.

How Much Is 100,000 vCore Seconds?

100,000 vCore seconds is approximately:

27.78 vCore-hours

That is an important figure when evaluating the free offer.

For example, a continuously active 1-vCore workload for approximately 27.78 hours would consume around 27.78 vCore-hours.

The actual Azure SQL serverless billing calculation is more nuanced because billing depends on resource usage and the configured minimum compute capacity. Microsoft explains that the billed compute can depend on CPU or memory consumption, with minimum compute resources applying while the database is online. (Microsoft Azure)

Therefore, developers should monitor actual consumption instead of assuming that the free allowance corresponds directly to a fixed number of hours.

How to Keep Azure SQL Database Within the Free Allowance

Practical steps include:

  • Configure serverless appropriately
  • Enable auto-pause when suitable
  • Disconnect unnecessary database tools
  • Avoid leaving development connections open
  • Monitor vCore consumption
  • Set Azure alerts
  • Monitor database size
  • Monitor backup usage
  • Avoid unnecessary background jobs
  • Review connection pools
  • Optimize expensive queries

Microsoft specifically recommends monitoring remaining free vCore seconds and notes that open connections from tools such as SQL Server Management Studio can continue consuming resources by preventing auto-pause. (Microsoft Learn)

The Cheapest Azure Database by Use Case

For a small .NET application

Azure SQL Database Free Offer

For a small MySQL application

Azure Database for MySQL Flexible Server Burstable

For a small PostgreSQL application

Azure Database for PostgreSQL Flexible Server Burstable

For a low-traffic NoSQL application

Azure Cosmos DB Serverless

For a small Cosmos DB development project

Azure Cosmos DB Free Tier

For an intermittent SQL workload

Azure SQL Database Serverless

For an intermittent PostgreSQL development environment

PostgreSQL Flexible Server with Stop/Start

For a continuously busy SQL workload

Provisioned Azure SQL Database

For a continuously busy PostgreSQL workload

Provisioned PostgreSQL Flexible Server

Azure Database Pricing Mistakes to Avoid

Mistake 1: Looking only at compute

A $6 database is not necessarily a $6 monthly bill.

Always consider:

  • Storage
  • Backup
  • I/O
  • Networking
  • Replication
  • High availability

Mistake 2: Choosing the wrong database engine

A cheap database that cannot efficiently support your application is not cheap.

Mistake 3: Ignoring idle periods

If a database is used only a few hours per day, serverless or Stop/Start may dramatically improve economics.

Mistake 4: Using production infrastructure for development

Development databases should not automatically use production-level capacity.

Mistake 5: Ignoring scaling

A low-cost SKU can become expensive if the application outgrows it and requires major redesign.

Mistake 6: Ignoring developer productivity

A familiar database can be cheaper overall even if its infrastructure price is slightly higher.

Mistake 7: Forgetting backup costs

Backup retention can increase the total bill.

Mistake 8: Ignoring data transfer

Applications that move significant data across networks can incur additional charges.

How to Calculate Your Azure Database Cost

A simple model is:

Monthly Database Cost = Compute + Storage + Backup + I/O or Requests + Networking + HA/Replication + Other Applicable Charges

For provisioned databases:

Compute Cost = hourly compute price × hours used

For consumption-oriented databases:

Consumption Cost = actual database operations × applicable unit price

For serverless databases:

Compute Cost = billed compute consumption × applicable rate

plus storage and other charges.

The exact formula depends on the service.

A Simple Example: Small Azure SQL Application

Imagine a small application with:

  • Low traffic
  • Long periods of inactivity
  • Less than 32 GB of database storage
  • Less than 32 GB of backup storage
  • Compute usage within the free monthly allowance

If it qualifies for the current Azure SQL Database free offer, the database can remain within the free allowance.

This makes Azure SQL potentially unbeatable on price for that particular scenario.

A Simple Example: Small MySQL Application

Imagine a small MySQL application requiring:

  • 1 vCore
  • 1 GiB RAM
  • Low traffic
  • Modest storage

Microsoft’s current pricing page lists B1s Burstable compute at approximately $6.205 per month before other applicable costs. (Microsoft Azure)

If the application needs more memory, B1ms is listed at approximately $12.41 per month.

This can be an attractive option for lightweight MySQL workloads.

A Simple Example: Small PostgreSQL Application

Suppose a PostgreSQL application requires:

  • 1 vCore
  • 2 GiB RAM
  • Low to moderate traffic

The B1ms PostgreSQL Flexible Server configuration is currently listed at approximately $12.41 per month in Microsoft’s pricing view. (Microsoft Azure)

If this is a development environment, Stop/Start can further reduce compute consumption.

A Simple Example: Low-Traffic Cosmos DB Application

Suppose an application receives unpredictable requests and has long periods of inactivity.

Instead of provisioning constant throughput, Cosmos DB Serverless may allow the application to pay according to actual request-unit consumption and storage.

Microsoft specifically positions Serverless for low-traffic and intermittent workloads. (Microsoft Azure)

This can make it more economical than a continuously provisioned database for the right access pattern.

How Region Changes Azure Database Pricing

Azure pricing varies by:

  • Region
  • Hardware generation
  • Availability
  • Currency
  • Agreement
  • Billing model
  • Reservation
  • Savings plan

The same database configuration can have different pricing in different Azure regions.

Therefore, always check the Azure pricing page or Azure Pricing Calculator using your actual:

  • Region
  • Currency
  • Subscription
  • Database configuration
  • Storage requirement
  • Backup requirement
  • Availability requirement

Microsoft explicitly warns that pricing displayed on its database pricing pages is an estimate and that actual prices can vary according to agreement, purchase date, currency exchange rates, and other factors. (Microsoft Azure)

Pay-As-You-Go vs Savings Plans vs Reservations

If a database runs continuously, pricing optimization does not stop at choosing a cheap SKU.

Azure provides purchasing options that can reduce long-term costs.

For example, Microsoft currently describes savings plans for databases and reservations as mechanisms for reducing costs when customers make qualifying commitments. PostgreSQL Flexible Server pricing documentation also describes discounts associated with longer-term commitments. (Microsoft Azure)

However, commitments should only be purchased after the workload is understood.

Do not reserve a resource simply because a discount appears attractive.

When a Savings Plan Makes Sense

A savings plan can make sense when:

  • Workload is stable
  • Database usage is predictable
  • Organization expects continued Azure usage
  • The team understands baseline consumption
  • Commitment risk is acceptable

It may be inappropriate for:

  • Temporary projects
  • Experimental workloads
  • Rapidly changing architectures
  • Short-lived development environments

When Reservations Make Sense

Reservations can be useful when:

  • The database runs continuously
  • Capacity is predictable
  • The application is mature
  • The organization expects long-term usage

Again, the cheapest database configuration today may not be the cheapest long-term architecture.

Cheapest Azure Database for Production

For production systems, “cheapest” should be interpreted as:

lowest sustainable cost while meeting reliability, performance, security, backup, and availability requirements.

That definition changes everything.

A production ecommerce database may require:

  • High availability
  • Automated backups
  • Monitoring
  • Alerts
  • Disaster recovery
  • Multiple replicas
  • Strong security
  • Adequate compute
  • Sufficient storage
  • Predictable performance

The absolute smallest database may be inappropriate.

Cheapest Azure Database for High Availability

High availability introduces additional infrastructure considerations.

Depending on the service, you may need:

  • Zone redundancy
  • Replicas
  • Standby compute
  • Cross-region replication

These features can increase costs.

The right approach is to determine the business’s actual availability requirement.

A personal project may tolerate downtime.

A payment platform may not.

A development environment may not need zone redundancy.

A mission-critical application may.

Cheapest Azure Database for Business Applications

For ordinary business applications, the decision often comes down to:

  • Existing database ecosystem
  • Application framework
  • Workload
  • Availability requirement
  • Team expertise
  • Expected growth

Azure SQL Database is especially compelling for Microsoft-centric organizations.

PostgreSQL Flexible Server is compelling for organizations using PostgreSQL.

MySQL Flexible Server is compelling for MySQL-based applications.

Cosmos DB is compelling for applications that genuinely need its NoSQL and distributed capabilities.

A Decision Framework for Choosing the Cheapest Azure Database

Use the following sequence.

Step 1: Identify the database model

Ask:

  • Relational?
  • NoSQL?
  • Document?
  • Key-value?
  • Graph?
  • PostgreSQL?
  • MySQL?
  • SQL Server?

Step 2: Estimate workload

Measure:

  • Queries per second
  • Reads
  • Writes
  • Peak traffic
  • Average traffic
  • Idle periods
  • Storage
  • Growth rate

Step 3: Determine availability

Ask:

  • Can the database go offline?
  • How much downtime is acceptable?
  • Is high availability required?
  • Is cross-region recovery necessary?

Step 4: Select the billing model

Consider:

  • Free offer
  • Serverless
  • Burstable
  • Provisioned
  • Serverless NoSQL
  • Savings plan
  • Reservation

Step 5: Calculate total cost

Include:

  • Compute
  • Storage
  • Backup
  • I/O
  • Networking
  • Replication
  • HA
  • Monitoring

Step 6: Validate with real metrics

Do not rely solely on theoretical estimates.

Deploy a small workload.

Measure actual consumption.

Then adjust.

Azure Database Cost Optimization Checklist

  • Choose the correct database engine.
  • Check whether an Azure free offer applies.
  • Select a small initial SKU.
  • Use Burstable compute for suitable workloads.
  • Use serverless for intermittent SQL workloads.
  • Configure auto-pause where appropriate.
  • Stop non-production PostgreSQL servers.
  • Monitor storage.
  • Monitor backup growth.
  • Optimize expensive queries.
  • Remove unused databases.
  • Remove unused development environments.
  • Review networking.
  • Avoid unnecessary cross-region traffic.
  • Evaluate high availability requirements.
  • Use reservations only for stable workloads.
  • Consider savings plans when appropriate.
  • Review Azure Cost Management regularly.
  • Set budget alerts.
  • Monitor database performance before scaling.
  • Reevaluate the architecture as traffic changes.

Is the Cheapest Azure Database Always Azure SQL?

No.

Azure SQL can be the cheapest option for a qualifying small relational workload because of Microsoft’s current free offer.

But MySQL Flexible Server has very low Burstable compute pricing.

PostgreSQL Flexible Server can be inexpensive for PostgreSQL workloads and offers Stop/Start.

Cosmos DB Serverless can be economical for intermittent NoSQL workloads.

Therefore, the correct answer depends on workload type.

The Most Cost-Effective Azure Database by Scenario

Best for free relational development

Azure SQL Database Free Offer

Best for low-cost MySQL

Azure Database for MySQL Flexible Server Burstable

Best for low-cost PostgreSQL

Azure Database for PostgreSQL Flexible Server Burstable

Best for intermittent NoSQL

Azure Cosmos DB Serverless

Best for free small NoSQL workloads

Azure Cosmos DB Free Tier

Best for intermittent SQL workloads

Azure SQL Database Serverless

Best for non-production PostgreSQL

PostgreSQL Flexible Server with Stop/Start

Frequently Asked Questions

Which Azure database is cheapest?

There is no single cheapest database for every workload. For eligible small relational workloads, Azure SQL Database can currently be free within Microsoft’s monthly free allowance. MySQL Flexible Server has very low-cost Burstable configurations, while Cosmos DB Serverless can be economical for low-volume NoSQL workloads. (Microsoft Learn)

Is Azure SQL Database free?

Microsoft currently offers an Azure SQL Database free offer with up to 10 General Purpose databases per subscription. Each database includes 100,000 vCore seconds, 32 GB of data storage, and 32 GB of backup storage per month under the offer. (Microsoft Learn)

Is Azure MySQL cheap?

Yes. Azure Database for MySQL Flexible Server has low-cost Burstable configurations. Microsoft’s current pricing page lists B1s at approximately $6.205 per month for compute in the relevant pricing view, before other applicable charges. (Microsoft Azure)

Is Azure PostgreSQL cheap?

It can be. PostgreSQL Flexible Server includes Burstable configurations, and Microsoft’s current pricing page lists B1ms at approximately $12.41 per month in the relevant pricing view. Stop/Start can also eliminate compute charges while the server is stopped. (Microsoft Azure)

Is Cosmos DB cheaper than Azure SQL?

Not universally. Cosmos DB Serverless can be cheaper for low-volume, intermittent NoSQL workloads, while Azure SQL can be substantially more economical for relational workloads, particularly when the Azure SQL free offer applies. (Microsoft Azure)

What is the cheapest Azure database for a small website?

For a SQL Server-based application, Azure SQL Database may be the most economical, especially if the workload fits the free offer. For a MySQL website, MySQL Flexible Server is a natural low-cost choice. For PostgreSQL, PostgreSQL Flexible Server is appropriate.

What is the cheapest Azure database for WordPress?

For a managed Azure database, MySQL Flexible Server is generally the natural choice because WordPress commonly uses MySQL-compatible relational databases. A low-cost Burstable configuration can be appropriate for a small site.

What is the cheapest Azure database for .NET?

Azure SQL Database is often the natural choice for .NET applications using Microsoft SQL Server technologies. For very small workloads, the current Azure SQL free offer can make it particularly attractive.

What is the cheapest Azure database for PostgreSQL?

Azure Database for PostgreSQL Flexible Server is the managed Azure PostgreSQL option to evaluate first. The Burstable B1ms configuration is currently listed at approximately $12.41 per month before other applicable costs. (Microsoft Azure)

What is the cheapest Azure database for MySQL?

Azure Database for MySQL Flexible Server has a B1s Burstable configuration currently listed at approximately $6.205 per month for compute in the relevant pricing view. (Microsoft Azure)

What is the cheapest Azure NoSQL database?

The answer depends on workload and architecture. Azure Cosmos DB Serverless can be particularly attractive for low-volume and intermittent NoSQL workloads because it bills based on consumed operations and storage without a provisioned throughput minimum. (Microsoft Azure)

Can I run an Azure database for free?

Yes, certain Azure database offers can be used within their applicable free limits. Azure SQL Database currently has a free offer with monthly limits, and Cosmos DB has a free tier with applicable throughput and storage allowances. (Microsoft Learn)

Does Azure SQL Database free offer expire?

Microsoft currently states that the Azure SQL Database free offer is free indefinitely, subject to the monthly usage limits and applicable conditions. (Microsoft Learn)

Is Azure SQL serverless cheaper than provisioned?

It depends on workload. Serverless is generally suited to variable and intermittent workloads. Microsoft notes that provisioned compute can be less expensive for databases with consistently high utilization. (Microsoft Azure)

Is Azure database pricing fixed?

No. Pricing depends on region, configuration, billing model, currency, agreement, and other factors. Microsoft’s pricing pages describe displayed prices as estimates rather than formal quotations. (Microsoft Azure)

Does stopping an Azure PostgreSQL server save money?

Yes. Azure Database for PostgreSQL Flexible Server supports Stop/Start. Microsoft states that when the server is stopped, compute charges stop, while applicable storage and backup charges continue. (Microsoft Azure)

Does Cosmos DB Serverless have a minimum throughput charge?

Microsoft describes Cosmos DB Serverless as having no minimum operations or request units, with billing based on consumed database operations and storage. (Microsoft Azure)

Final Verdict: Which Azure Database Is the Cheapest?

If the question is asking for one universal answer, the most accurate response is:

There is no universally cheapest Azure database.

However, the current Azure pricing landscape makes several options stand out.

For an eligible small relational workload, Azure SQL Database can be the cheapest because Microsoft currently provides a free offer with monthly compute, storage, and backup allowances. (Microsoft Learn)

For a small MySQL application that needs a continuously available managed database, Azure Database for MySQL Flexible Server Burstable is one of the lowest-cost conventional managed database options, with Microsoft’s current pricing page listing B1s compute at approximately $6.205 per month before additional charges. (Microsoft Azure)

For PostgreSQL, Azure Database for PostgreSQL Flexible Server Burstable provides a low-cost managed PostgreSQL option, while Stop/Start can further reduce compute costs for non-production workloads. (Microsoft Azure)

For intermittent NoSQL applications, Azure Cosmos DB Serverless can be highly cost-effective because it charges based on consumed operations and storage rather than requiring provisioned throughput. (Microsoft Azure)

The best cost-saving strategy is therefore not simply to search for the lowest price displayed on an Azure pricing page.

Instead:

  • Match the database engine to the application.
  • Match the billing model to the workload.
  • Use free offers when legitimately applicable.
  • Use serverless for intermittent SQL workloads.
  • Use Burstable SKUs for low-intensity workloads.
  • Stop non-production databases when they are not needed.
  • Monitor storage and backup growth.
  • Optimize database queries.
  • Avoid unnecessary high availability.
  • Control network traffic.
  • Use reservations or savings plans only after usage becomes predictable.
  • Recalculate total cost as the application grows.

For most small projects, the strongest starting point is Azure SQL Database Free Offer for qualifying relational applications, MySQL Flexible Server Burstable for MySQL applications, PostgreSQL Flexible Server Burstable for PostgreSQL applications, and Cosmos DB Serverless for genuinely intermittent NoSQL workloads.

The cheapest Azure database is ultimately the one that delivers the required functionality and reliability with the lowest total cost of ownership, not necessarily the one with the smallest advertised compute number.

 

FILL THE BELOW FORM IF YOU NEED ANY WEB OR APP CONSULTING





    Need Customized Tech Solution? Let's Talk