Automated flow of creating user in Azure AD to MySQL that runs in K8s cluster in Azure

  automation, azure, docker, kubernetes, mysql

My ASP.net core application runs on Azure K8s cluster, the app uses authentication that is configured in Azure (the app is registered in Azure AD and some accounts are created there to use it).

The ASP.net core application is connected to read data from MySQL database that is running in Azure K8s as docker image.

The issue here is Azure AD accounts are not linked with MySQL database. once a user login has no relation with MySQL database uses. I like to have a an automated flow once I create an account in Azure AD to use my app the account data is automatically insert into MySQL database?

Knowing that I don’t want to use Azure MySQL database, I prefer to use MySQL that is running as service in Azure K8s cluster.

Source: Docker Questions

LEAVE A COMMENT