Domain 2 β€” Module 6 of 7 86%
13 of 27 overall
Domain 2: Relational Data on Azure Free ⏱ ~10 min read

Open-Source Databases on Azure

Not every application uses SQL Server. Azure also offers fully managed MySQL and PostgreSQL β€” the world's most popular open-source databases.

Open-source databases in the cloud

Simple explanation

SQL Server isn’t the only relational database. Millions of apps use MySQL or PostgreSQL instead.

Azure offers managed versions of both β€” same database engine your developers already know, but Azure handles the servers, backups, and patching. It’s like moving from cooking at home to having a professional kitchen prepare your favourite recipe.

Azure Database for MySQL

MySQL is the most widely deployed open-source relational database. It powers WordPress, Drupal, Magento, and countless web applications.

Azure Database for MySQL β€” Flexible Server (the current offering) provides:

  • Community MySQL engine (versions 5.7 and 8.0+)
  • Automated backups with point-in-time restore (up to 35 days)
  • High availability with zone-redundant deployment
  • Automatic patching and version upgrades
  • Built-in monitoring and performance insights

Aisha’s example: Her campus food app uses a popular PHP framework that expects MySQL. Azure Database for MySQL lets her deploy without changing any database code.

Azure Database for PostgreSQL

PostgreSQL (often called β€œPostgres”) is known for advanced features: complex queries, JSON support, geographic data (PostGIS), and extensibility.

Azure Database for PostgreSQL β€” Flexible Server provides:

  • Community PostgreSQL engine (versions 13-17)
  • Same managed benefits as MySQL (backups, HA, patching)
  • Support for extensions (PostGIS for geospatial, pgvector for AI, pg_cron for scheduling)
  • Connection pooling with PgBouncer (built-in)

Tom’s example: Pacific Freight uses PostGIS to query geographic data for delivery routes. Azure Database for PostgreSQL supports the PostGIS extension natively.

Azure Database for MySQL vs PostgreSQL
FeatureAzure DB for MySQLAzure DB for PostgreSQL
EngineMySQL Community EditionPostgreSQL Community Edition
Best forWeb apps, CMS (WordPress), PHP/Node.js appsComplex queries, GIS data, advanced data types, AI workloads
Key strengthSimplicity, wide ecosystem, huge communityAdvanced features, extensibility, standards compliance
JSON supportBasic (JSON column type)Advanced (JSONB with indexing and querying)
ExtensionsLimitedRich ecosystem (PostGIS, pgvector, pg_cron)
Typical usersWeb developers, CMS buildersData-intensive apps, GIS analysts, AI developers
What about MariaDB?

You may have heard of MariaDB β€” a fork of MySQL created by MySQL’s original developer. Azure previously offered Azure Database for MariaDB, but this service was retired in September 2025. MariaDB is no longer available as a managed Azure service.

For the DP-900 exam, focus on MySQL and PostgreSQL as the two open-source database services on Azure.

Exam tip: open-source database selection

When the exam describes a scenario with open-source databases:

  • β€œWordPress site” or β€œPHP application” β†’ Azure Database for MySQL
  • β€œGeographic/spatial data” or β€œPostGIS” β†’ Azure Database for PostgreSQL
  • β€œAdvanced JSON querying” β†’ Azure Database for PostgreSQL
  • β€œSimple web application with MySQL driver” β†’ Azure Database for MySQL
  • β€œNeed full SQL Server compatibility” β†’ NOT open-source β€” use Azure SQL

Flashcards

Question

What are the two open-source relational database services on Azure?

Click or press Enter to reveal answer

Answer

Azure Database for MySQL (for web apps, CMS, PHP/Node.js) and Azure Database for PostgreSQL (for complex queries, GIS data, advanced data types).

Click to flip back

Question

What makes PostgreSQL different from MySQL?

Click or press Enter to reveal answer

Answer

PostgreSQL offers more advanced features: better JSON support (JSONB), geographic data extensions (PostGIS), AI extensions (pgvector), and stronger standards compliance. MySQL is simpler and has a larger web ecosystem.

Click to flip back

Question

Are Azure's open-source database services managed or self-managed?

Click or press Enter to reveal answer

Answer

Fully managed (PaaS) β€” Azure handles server infrastructure, patching, automated backups, high availability, and monitoring. You manage your data and application, not the servers.

Click to flip back

Knowledge check

Knowledge Check

Aisha's food ordering app is built with a PHP framework that requires MySQL. She wants Azure to handle server management, backups, and patching. Which service should she use?

Knowledge Check

Tom's logistics app needs to query geographic coordinates β€” finding the nearest warehouse to a delivery address using spatial calculations. Which Azure database service supports this BEST?

Next up: Choosing the Right Azure Database β€” a decision guide for picking the right relational database service.