Disclaimer: I am a consultant at Amazon Web Services, and this is my personal blog. The opinions expressed here are solely mine and do not reflect the views of Amazon Web Services (AWS). Any statements made should not be considered official endorsements or statements by AWS.
Steps to connect Azure SQL with Azure Active Directory
Create an Azure SQL Database
Configure it to use Azure AD by setting up an admin
Connect with SSMS to your database using Azure Active Directory - Universal with MFA authentication
For Local Development
When App runs in Azure cloud
To get the Access Token for Azure AD Identity, install NuGet package - Microsoft.Azure.Services.AppAuthentication
Create a class like the below:
Finally write the ADO.NET Code and set the AccessToken property.