Skip to main content
Azure Database for MySQL is a fully managed relational database service that provides enterprise-grade reliability and security. It supports JSON-based vector storage for semantic search capabilities in AI applications.

Usage

Using Azure Managed Identity

For production deployments, use Azure Managed Identity instead of passwords:
When use_azure_credential is enabled, the password is obtained via Azure DefaultAzureCredential (supports Managed Identity, Azure CLI, etc.)

Config

Here are the parameters available for configuring Azure MySQL:

Setup

Create MySQL Flexible Server using Azure CLI:

Enable Azure AD Authentication:

  1. In Azure Portal, navigate to your MySQL Flexible Server
  2. Go to Security > Authentication and enable Azure AD
  3. Add your application’s managed identity as a MySQL user:
For production, use Managed Identity to eliminate password management.