var credential = new DefaultAzureCredential( var credential = new DefaultAzureCredential() Uncomment the following lines according to the authentication type. When using the code below, uncomment the part of the code snippet for the authentication type you want to use. Then you can use the access token as the password to connect to the database. You can get an access token for the managed identity or service principal using client library like Azure.Identity. NET, there's not a plugin or library to support passwordless connections. Refer to the steps and code below to connect to Azure Database for MySQL using a system-assigned managed identity.įor. Go-sql-driver connection environment variable name Server=. Database= Port=3306 User Id= SSL Mode=Required Supported authentication and clients for App Service, Azure Functions, Container Apps, and Azure Spring Apps: Client type Supported authentication types and client types You can get the configurations from Azure Spring Apps runtime. You can get the configurations from Azure Container Apps environment variables. You can get the configurations from Azure Functions configurations. You can get the configurations from Azure App Service configurations. For more information about migrating to Azure Database for MySQL - Flexible Server, see What's happening to Azure Database for MySQL Single Server? Supported compute services We strongly recommend for you to upgrade to Azure Database for MySQL - Flexible Server. Azure Database for MySQL - Single Server is on the retirement path.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |