Azure AD identity specifying username and password using SqlConnection

Connection string

This .NET Framework Data Provider for SQL Server connection string can be used for connections to Azure SQL Database.

To connect using an Azure AD identity with a specific user, Authentication should be set to Active Directory Password.

Server=tcp:myserver.database.windows.net,1433;
Authentication
=Active Directory Password;
Database=myDataBase;
UID
=myUser@myDomain;
PWD=myPassword;