I'm using SqlClient in my Azure function. Currently when I try to create a new instance passing the connection string, I receive the following message
Keyword not supported: 'authentication'
My connection string is
server=tcp:mydbserver.database.windows.net;database=mydb;UID=AnyString;Authentication=Active Directory Interactive
My azure function has 'Identity' setting enabled.
My other .NET apps running as AppService are working excellent connecting to the same DB, but they use EntityFramework
I have tried to remove Authentication=Active Directory Interactive and also add the following line to the connection
connection.AccessToken = new Microsoft.Azure.Services.AppAuthentication.AzureServiceTokenProvider().GetAccessTokenAsync("https://database.windows.net/").Result;
But I'm just getting different error messages like Login failed for user '' or Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
Thanks!