# Azure Database for MySQL

Azure Database for MySQL is a fully managed relational database service based on MySQL Community Edition, delivered through Flexible Server.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/azure-database-for-mysql

> Azure Database for MySQL runs MySQL databases while Azure manages the underlying infrastructure, automated backups, patching, and optional high availability. Engineers retain control over schemas, queries, supported server parameters, compute sizing, networking, and recovery configuration.

## 9 key features of Azure Database for MySQL

1. **Managed MySQL engine and maintenance**: Azure manages infrastructure and database maintenance while exposing supported MySQL server parameters. Set an appropriate maintenance window and test application behavior during reconnections; managed hosting does not remove the need for query tuning or schema maintenance.
2. **Configurable compute and storage**: Choose Burstable, General Purpose, or Memory Optimized compute and provision storage for workload requirements. Monitor CPU, memory, and I/O before resizing, and plan for connection interruptions during compute changes.
3. **High availability with managed failover**: Configure same-zone or zone-redundant high availability where supported by the region and server configuration. The standby provides failover capacity rather than serving application reads, and clients must reconnect after a failover.
4. **Automated backups and point-in-time restore**: Retain automated backups for 1 to 35 days and restore to a point within the available recovery window. Restore creates a separate server; configure geo-redundant backup where supported if regional recovery is required.
5. **Asynchronous read replicas**: Use read replicas to separate reporting or other read-heavy workloads from the primary server. Route writes to the primary and account for replication lag; the reader endpoint for distributing read-only connections across replicas is available in public preview.
6. **Private connectivity and network controls**: Use virtual network integration or supported Private Link configurations for private connectivity, or restrict public access with firewall rules. Plan private DNS resolution and application network routes before deployment because networking modes have different constraints.
7. **Encryption and identity-based access**: Data at rest is encrypted, TLS is enforced by default, and Microsoft Entra authentication supports identity-based database access. Customer-managed encryption keys are available for workloads requiring control over key access and lifecycle.
8. **Operational metrics and database logs**: Use Azure Monitor metrics to track resource utilization, connections, storage, and replication behavior. Enable audit and slow query logging deliberately, then configure diagnostic settings to export supported logs for investigation and retention.
9. **Stop and start for intermittent workloads**: Stop eligible servers when development or test environments are idle to avoid compute charges during the stopped period. Storage and retained backup charges continue, and service limits on stopped duration must be included in scheduling.

## Where Azure Database for MySQL is used

1. **Transactional web applications**: Store customers, orders, inventory, and other relational application data using standard MySQL drivers and transactions. Place application compute near the database, use connection pooling, and configure high availability according to the application's outage tolerance.
2. **MySQL application migration**: Move supported MySQL workloads from self-managed servers to managed infrastructure. Assess engine compatibility, privileges, collations, plugins, and migration downtime before selecting a dump-and-restore or supported online migration approach.
3. **Content management and commerce platforms**: Host database backends for MySQL-compatible platforms such as WordPress and commerce applications. Validate platform and extension support, then size for peak concurrency, transaction volume, and background jobs.
4. **Read-heavy application backends**: Move eligible reporting, catalog browsing, or dashboard queries to read replicas. Keep read-after-write operations on the primary when stale results would cause incorrect application behavior.
5. **Development and integration testing**: Create managed MySQL environments for application development and automated tests without administering database virtual machines. Use smaller compute tiers where appropriate and stop eligible idle servers to reduce compute spending.

## How Azure Database for MySQL is priced

- **Pay-as-you-go provisioned resources**: Pay for the configured server compute and provisioned storage rather than per query or per database. Rates depend on region, compute tier, size, and storage configuration; applicable I/O charges depend on the selected storage and IOPS model.
- **Reserved compute capacity**: Eligible one-year or three-year reservations can reduce compute costs for predictable usage. Reservations do not replace separate charges for storage, backups, networking, or other resources, so evaluate utilization and matching requirements before committing.
- **High availability and replica capacity**: High availability adds billable standby resources, and each read replica is a separately provisioned server with its own compute and storage costs. Include these resources when comparing a single-server estimate with a production architecture.
- **Backup storage and supporting services**: Backup storage beyond the included allowance is charged separately, and geo-redundant backup affects backup costs. Also budget for applicable data transfer, Private Link, Key Vault operations, and Azure Monitor log ingestion and retention.

## Services Azure Database for MySQL works with

A common application architecture places Azure App Service or Azure Kubernetes Service in front of Flexible Server and uses private database connectivity. Keep application compute and the primary database in the same region where practical, configure private DNS, and use bounded connection pools. Microsoft Entra authentication with managed identities can remove stored application passwords when the client supports the required token flow; Key Vault remains useful for legacy credentials and customer-managed encryption keys.

Azure Functions can react to configured MySQL table changes for asynchronous processing, while Azure Data Factory provides scheduled extraction into analytical storage. Keep operational transactions on the primary and direct suitable read-only queries to replicas, accounting for replication lag. Neither asynchronous replication nor scheduled extraction guarantees immediate read-after-write consistency.

Centralize operational visibility through Azure Monitor and Log Analytics. Export explicitly enabled audit and slow query logs, create capacity and availability alerts, and correlate database behavior with application telemetry. Test networking, identity permissions, failover reconnection, and restore procedures together rather than validating each service in isolation.

- **[App Service](https://blowstack.com/tools/cloud-services-hub/app-service)**: App Service applications connect through standard MySQL drivers over TLS. For example, a PHP storefront can run in App Service and store orders in Flexible Server using App Service virtual network integration to reach the database privately. Configure connection pooling and retry behavior for maintenance and failover.
- **[Azure Kubernetes Service (AKS)](https://blowstack.com/tools/cloud-services-hub/azure-kubernetes-service-(aks))**: AKS workloads can use Flexible Server as an external managed relational database instead of running MySQL inside the cluster. For example, an order-processing deployment can connect through a private endpoint or routed virtual network connectivity. Limit aggregate connection pools across pods so application scaling does not exhaust database connections.
- **[Azure Functions](https://blowstack.com/tools/cloud-services-hub/azure-functions)**: Azure Functions supports MySQL triggers for responding to inserts, updates, and deletes in configured tables. For example, a function can process a changed order row and initiate downstream fulfillment work. Configure the required change-tracking setup and database permissions, and make handlers idempotent to tolerate repeated processing.
- **[Azure Monitor](https://blowstack.com/tools/cloud-services-hub/azure-monitor)**: Azure Monitor collects database resource metrics and can receive supported audit and slow query logs through diagnostic settings. For example, route logs to a Log Analytics workspace and alert on sustained CPU pressure, failed connections, or storage growth. Enable the relevant database logging parameters as well as diagnostic export.
- **[Azure Key Vault](https://blowstack.com/tools/cloud-services-hub/azure-key-vault)**: Key Vault can hold database credentials and customer-managed keys used for database encryption. For example, an application can retrieve a legacy database password from a vault while a server identity accesses an encryption key under separate permissions. Protect required key versions and test key rotation procedures because loss of key access can affect database availability.
- **[Azure Data Factory](https://blowstack.com/tools/cloud-services-hub/azure-data-factory)**: Data Factory can copy MySQL data into downstream stores through its Azure Database for MySQL connector. For example, schedule an incremental orders extract into Azure Data Lake Storage using a watermark column. Select an integration runtime and network configuration that can reach the database, and avoid treating scheduled copy jobs as automatic change data capture.
- **[Azure Advisor](https://blowstack.com/tools/cloud-services-hub/azure-advisor)**: Azure Database for MySQL flexible servers receive resource-specific recommendations in Azure Advisor. For example, Advisor can recommend enabling zone-redundant high availability on an eligible server.
- **[Azure Backup](https://blowstack.com/tools/cloud-services-hub/azure-backup)**: Azure Database for MySQL flexible servers can use Azure Backup for vaulted, long-term retention beyond the built-in point-in-time restore window. A backup policy can retain recovery points for up to 10 years.
- **[Azure Blob Storage](https://blowstack.com/tools/cloud-services-hub/azure-blob-storage)**: Azure Database for MySQL can archive audit and slow-query logs to Blob Storage through diagnostic settings. The MySQL migration import feature can also initialize a flexible server from a supported physical backup staged in a blob container.
- **[Azure Database Migration Service](https://blowstack.com/tools/cloud-services-hub/azure-database-migration-service)**: Azure Database for MySQL Flexible Server is a migration target for Azure Database Migration Service. The unified MySQL migration experience can restore a supported physical backup to a flexible server, an option for large source databases.
- **[Azure Databricks](https://blowstack.com/tools/cloud-services-hub/azure-databricks)**: Azure Database for MySQL can serve as a MySQL source for Azure Databricks Lakehouse Federation. Databricks users can query the server's tables through a Unity Catalog foreign catalog without first copying them into Delta tables.
- **[Azure DevOps](https://blowstack.com/tools/cloud-services-hub/azure-devops)**: Azure Database for MySQL can receive schema and data changes from Azure Pipelines through its dedicated MySQL deployment task. A release pipeline can use the task to run a versioned SQL script against a target database.
- **[Azure DNS](https://blowstack.com/tools/cloud-services-hub/azure-dns)**: Azure Database for MySQL uses Azure Private DNS to resolve privately accessible flexible servers by hostname. For example, a private DNS zone linked to a client virtual network can resolve the server name to its private endpoint address.
- **[Azure ExpressRoute](https://blowstack.com/tools/cloud-services-hub/azure-expressroute)**: Azure Database for MySQL flexible servers with private access can be reached from on-premises networks over ExpressRoute. ExpressRoute private peering carries database traffic into the virtual network without requiring a public database endpoint.
- **[Azure Managed Grafana](https://blowstack.com/tools/cloud-services-hub/azure-managed-grafana)**: Azure Database for MySQL can supply dashboard data directly to Azure Managed Grafana through Grafana's built-in MySQL data source. A panel can run a SQL query that groups application records by hour and plots the results.
- **[Azure Marketplace](https://blowstack.com/tools/cloud-services-hub/azure-marketplace)**: Azure Database for MySQL Flexible Server is provisioned as the database backend by some Azure Marketplace offers. For example, the WordPress on App Service offer deploys a flexible server to store the site's content and settings.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Azure Database for MySQL flexible servers can be evaluated against built-in Azure Policy definitions for settings such as public network access and encryption with customer-managed keys. Noncompliant servers appear in policy compliance results.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: Azure Database for MySQL has a dedicated management experience in the Azure portal. Administrators can create and scale flexible servers, change server parameters, and restore a server to a selected point in time.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: Azure Database for MySQL Flexible Server supports Private Link private endpoints on servers created with the public-access networking option. Clients can reach the server at a private IP address, and public network access can be disabled.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Azure Database for MySQL exposes flexible servers and child resources such as databases and firewall rules as Azure Resource Manager resource types. A template can provision these resources together with repeatable settings.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Azure Database for MySQL uses Azure RBAC to control management operations on flexible servers. A role assignment scoped to a server can let an operator manage the Azure resource without granting access to tables inside the database.
- **[Azure Service Health](https://blowstack.com/tools/cloud-services-hub/azure-service-health)**: Azure Database for MySQL planned maintenance notifications can be delivered through Azure Service Health alerts. Administrators can use those notices to coordinate application maintenance around upcoming flexible-server updates.
- **[Azure Spring Apps](https://blowstack.com/tools/cloud-services-hub/azure-spring-apps)**: Azure Database for MySQL Flexible Server is a supported Service Connector target for Azure Spring Apps. The connection can populate a Spring Boot application's JDBC settings and configure managed identity authentication.
- **[Azure Synapse Analytics](https://blowstack.com/tools/cloud-services-hub/azure-synapse-analytics)**: Azure Database for MySQL is a source and destination for Azure Synapse pipelines through its dedicated connector. A pipeline can copy MySQL tables into an analytics store or write transformed data back to MySQL.
- **[Azure Virtual Network](https://blowstack.com/tools/cloud-services-hub/azure-virtual-network)**: Azure Database for MySQL Flexible Server can be deployed into a delegated Azure Virtual Network subnet in private-access mode. Clients on the same or a connected virtual network can reach the server without exposing a public endpoint.
- **[Azure VPN Gateway](https://blowstack.com/tools/cloud-services-hub/azure-vpn-gateway)**: Azure Database for MySQL flexible servers with private access can be reached from an on-premises network through a site-to-site connection on Azure VPN Gateway. Database traffic travels through the VPN to the virtual network rather than to a public MySQL endpoint.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: Azure Database for MySQL can stream resource logs, such as audit and slow-query logs, to Event Hubs through diagnostic settings. A consumer can process the stream for centralized auditing or performance analysis.
- **[Logic Apps](https://blowstack.com/tools/cloud-services-hub/logic-apps)**: Azure Database for MySQL can serve as a data source for the MySQL connector in Logic Apps. A workflow can retrieve or update table rows using connector actions rather than custom database client code.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: Azure Database for MySQL can be protected by the Defender for open-source relational databases plan in Microsoft Defender for Cloud. The plan monitors database activity and can raise security alerts for suspicious behavior such as unusual access or potential SQL injection.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: Azure Database for MySQL Flexible Server accepts Microsoft Entra access tokens for database authentication. Administrators can grant access to Entra users, groups, and managed identities so they can sign in without a separate MySQL password.
- **[Microsoft Fabric](https://blowstack.com/tools/cloud-services-hub/microsoft-fabric)**: Azure Database for MySQL can mirror selected databases and tables into Microsoft Fabric OneLake. After the initial copy, continuous replication keeps the mirrored data current for analytics and reporting.
- **[Microsoft Purview](https://blowstack.com/tools/cloud-services-hub/microsoft-purview)**: Azure Database for MySQL can be scanned through Microsoft Purview's MySQL connector. Purview catalogs database metadata such as tables and columns so users can discover those assets without connecting to the database themselves.
- **[Power BI Embedded](https://blowstack.com/tools/cloud-services-hub/power-bi-embedded)**: Azure Database for MySQL can supply data to embedded Power BI reports through the MySQL connector. An imported semantic model can refresh from MySQL on a schedule, and reports built on that model can be embedded in an application.

## Alternatives to Azure Database for MySQL in other clouds

### AWS

**[Amazon Aurora](https://blowstack.com/tools/cloud-services-hub/amazon-aurora)**: Amazon Aurora and Azure Database for MySQL Flexible Server are fully managed relational database services for MySQL workloads, with automated backups and point-in-time recovery. Aurora offers both MySQL and PostgreSQL compatibility and a choice of provisioned or serverless compute, while Flexible Server runs MySQL Community Edition on provisioned compute tiers.

| | Azure Database for MySQL | Amazon Aurora |
| --- | --- | --- |
| Database engines | MySQL Community Edition | MySQL- and PostgreSQL-compatible |
| Compute model | Provisioned, three tiers | Provisioned or serverless |
| Storage allocation | Provisioned for workload needs | Auto-scales up to 256 TiB |

Compared Nov 2026.

**[Amazon RDS](https://blowstack.com/tools/cloud-services-hub/amazon-rds)**: Amazon RDS and Azure Database for MySQL both run managed MySQL databases with automated patching and backups. Amazon RDS also supports other database engines and offers MySQL Multi-AZ clusters with readable standbys, while Azure Flexible Server runs only MySQL and uses its high-availability standby for failover only.

| | Azure Database for MySQL | Amazon RDS |
| --- | --- | --- |
| Database engines | MySQL Community Edition only | MySQL, PostgreSQL, SQL Server, others |
| MySQL standby reads | Failover only | Readable in Multi-AZ DB clusters |

Compared Nov 2026.

**[Amazon Aurora Serverless](https://blowstack.com/tools/cloud-services-hub/amazon-aurora-serverless)**: Amazon Aurora Serverless and Azure Database for MySQL Flexible Server both support MySQL workloads and handle patching and backups. Aurora scales compute automatically and bills for capacity consumed, while Flexible Server uses compute that teams size and pay for as configured.

| | Azure Database for MySQL | Amazon Aurora Serverless |
| --- | --- | --- |
| Compute scaling | Manual resizing | Automatic within a configured range |
| Compute billing | Provisioned compute capacity | Consumed ACUs, billed per second |
| Database compatibility | MySQL | MySQL and PostgreSQL |
| Idle compute | Manual stop/start for eligible servers | Auto-pause/resume on supported versions |

Compared Nov 2026.

## What is Azure Database for MySQL

Azure Database for MySQL provides managed MySQL hosting for transactional applications, websites, and services that use the MySQL protocol and ecosystem. Flexible Server is the deployment model for new workloads. A server is the management and resource boundary for one or more databases, which share its provisioned compute and storage. Applications connect through standard MySQL drivers, but compatibility testing remains necessary when migrating workloads that depend on particular engine versions, plugins, or administrative privileges.

Azure manages the operating system, database infrastructure, automated backups, and maintenance operations. Database administrators remain responsible for schema design, indexing, query performance, database permissions, and capacity planning. The service does not expose unrestricted operating system access or MySQL SUPER privileges. Configure supported engine settings through server parameters, and check whether a parameter change requires a restart. Use a maintenance window to align scheduled service work with operational requirements, while retaining application retry logic for transient interruptions.

Compute options include Burstable, General Purpose, and Memory Optimized tiers. Select a tier using measured CPU consumption, memory requirements, connection counts, and storage activity rather than database size alone. Burstable compute suits intermittent demand but is generally unsuitable for sustained CPU-intensive workloads. Compute scaling can interrupt connections, so clients should use connection pooling and bounded retries. Read replicas can offload eligible read traffic, but replication is asynchronous and applications must tolerate stale results.

For production availability, configure supported same-zone or zone-redundant high availability rather than assuming a single server provides protection against every failure. The standby supports failover and is not a read-scaling endpoint. Automated backups support point-in-time recovery within a configurable retention period of 1 to 35 days. Recovery creates a separate server, so recovery procedures must include validation and application reconnection. Geo-redundant backup, where supported and configured, addresses regional recovery requirements; local high availability alone does not provide regional disaster recovery.

Choose networking early. Public access uses firewall rules, private endpoints provide access through Azure Private Link, and virtual network integration deploys the server into a delegated subnet. These approaches have different deployment constraints and DNS requirements. Keep TLS enforcement enabled, restrict database privileges, and use Microsoft Entra authentication where appropriate. Data and backups are encrypted at rest, with customer-managed encryption keys available for requirements that need explicit key control.

Operate the service using Azure Monitor metrics and explicitly configured audit and slow query logs. Alert on resource saturation, connection pressure, storage growth, and replica lag. Test restore and failover procedures regularly, and include standby compute, read replicas, backup retention, monitoring ingestion, and network transfer in cost estimates.
