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:
- In Azure Portal, navigate to your MySQL Flexible Server
- Go to Security > Authentication and enable Azure AD
- Add your application’s managed identity as a MySQL user: