How to configure azure my sql server with Azure active directory user login

dhanasekaranDevOps aximsoft 1 Reputation point
2023-05-16T12:45:19.17+00:00

Hi Team,

I have configured new mysql server with azure active directory authentication using below link, but its not working can you please share the steps to configure

Link - https://learn.microsoft.com/en-us/azure/mysql/single-server/how-to-configure-sign-in-azure-ad-authentication

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
719 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 27,717 Reputation points Microsoft Employee
    2023-05-17T16:05:12.92+00:00

    Hi @dhanasekaranDevOps aximsoft Since you have already created the Azure Mysql flexible server here are the steps you can follow to enable AAD authentication

    Step 1 Add a user-assigned Managed Identity to your Azure DB for the Mysql Flexible server

    a. Go to Managed Identities from the portal and click on create

    User's image

    b.create a managed identity by selecting your subscription, resource group, and region as shown below once all details are entered click on review create

    User's image

    c. once the validation is passed click on create

    Step2 Enable AAD Authentication on your Flexible server

    a. go to your Mysql flexible server under security select authentication

    User's image

    b. select MySQL AAD authentication

    User's image

    c. add user-assigned managed identity which you have created in step 1

    User's image

    d. select the Azure active directory administrator and click on save

    User's image

    Once all the steps are completed click on server parameters under setting and on aad_auth as shown below

    User's image

    I hope this information helps, please let me know if you are facing any issues at any step

    Regards

    Geetha

    0 comments No comments