Integrate Azure Database for MySQL with Service Connector
2 minutes to read
This page shows the supported authentication types and client types of Azure Database for MySQL using Service Connector. You might still be able to connect to Azure Database for MySQL in other programming languages without using Service Connector. This page also shows default environment variable names and values (or Spring Boot configuration) you get when you create the service connection. You can learn more about Service Connector environment variable naming convention.
Supported compute service
Azure App Service
Azure Container Apps
Azure Spring Apps
Supported authentication types and client types
Supported authentication and clients for App Service, Container Apps, and Azure Spring Apps:
System-assigned managed identity
User-assigned managed identity
Secret / connection string
Go (go-sql-driver for mysql)
Java - Spring Boot (JDBC)
Default environment variable names or application properties
Use the connection details below to connect compute services to Azure Database for MySQL. For each example below, replace the placeholder texts <MySQL-DB-name>, <MySQL-DB-username>, <MySQL-DB-password>, <server-host>, and <port> with your Azure Database for MySQL name, Azure Database for MySQL username, Azure Database for MySQL password, server host, and port.