Azure Docs

Azure Database for MariaDB Overview

Azure Database for MariaDB is a fully managed relational database service based on the open‑source MariaDB community edition. It provides built‑in high availability, automated backups, scaling, and security.

Getting Started

  1. Log in to the Azure portal.
  2. Create a new MariaDB server via Create a resource → Databases → Azure Database for MariaDB.
  3. Configure compute tier, storage, and networking.
  4. Set up firewall rules to allow client IPs.
  5. Connect using your preferred tool (MySQL Workbench, Azure Data Studio, etc.).
mysql -h <servername>.mariadb.database.azure.com -u <adminUser>@<servername> -p

Key Concepts

Compute and Storage

Compute is measured in vCores; storage is provisioned in GB. Both can be scaled independently without downtime.

Backup & Restore

Automated backups are taken every 5 minutes and retained for up to 35 days. Use az mariadb server restore to restore to a point in time.

High Availability

Built‑in HA provides 99.99% uptime SLA with automatic failover within a region.

Performance Tuning

Use the performance tuning guide to optimize queries, indexes, and server parameters.

API & SDKs

Manage MariaDB resources programmatically using Azure CLI, PowerShell, or REST API.

# Azure CLI example
az mariadb server create \
    --resource-group MyResourceGroup \
    --name mymariadbserver \
    --location eastus \
    --admin-user adminuser \
    --admin-password MyP@ssw0rd \
    --sku-name B_Gen5_2

Learn More