2

Returns error 'Keyword not supported: 'authentication'' while trying to create a context using EF Core

"Data Source=tcp:XXXXXXX.windows.net,1433;Initial Catalog=XXXXX;Persist Security Info=False;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Authentication=Active Directory Integrated"

3

2 Answers 2

2

Azure Functions V2 builts on top of .Net Core and AFAIK SqlClient for .NET Core still does not support using the 'Authentication' keyword in the connection string. That should work when this issue is actually fixed.

Sign up to request clarification or add additional context in comments.

Comments

0

You can reference this bob: Azure Active Directory Connection String.

It has the same error with you. And the answer gives two suggestions:

  1. Have you been through this troubleshooting guide: Use Azure Active Directory Authentication for authentication with SQL.

  2. do you have .NET Framework 4.6 or later installed?

Follow this two suggestions, the problem is solved. I think you can try it and maybe it can helps you.

Hope this helps.

1 Comment

Does github.com/dotnet/SqlClient now support the 'Authentication' keyword for AD?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.