Connection string for connecting to Azure SQL Database via Azure AD

Question:

How can I build connection string for connecting to Azure SQL Database using Azure AD account?
Currently, I am using the following but it does not seem to be correct. It does not use Authentication Type: Active Directory Password.

Part of PowerShell script I am using:

I really appreciate your help.

Answer:

I managed to resolve the issue; It was actually the order of properties.

The following connection string worked

However, this does not work

The only difference is the order of “Authentication” tag.
I never thought order of properties matter in ConnectionString.

Source:

Connection string for connecting to Azure SQL Database via Azure AD by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply