I am trying to execute a SSIS package where source is SQL Server and destination is Azure SQL with authentication "Active Directory Service Principal". ODBC driver is 17.8 and OLEDB driver is 18.5.
While executing the SSIS package, it fails for a script task with this error
Invalid value for key 'authentication'
Below connection string is used:
Server=tcp:servername.database.windows.net,1433;
Initial Catalog=DBName;Persist Security Info=False;
User ID=clientid;Password=secrets;
Authentication="Active Directory Service Principal";
MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;
Script task is using System.Data.SQLClient library and targetting the .NET Framework v4.7
System.Data.SQlClientonly supports SQL authentication or AAD User Account Authentication .So, if you want to use Service Principal or other authentication Methods then you should use
Microsoft.Data.SQLClientas it is supported by it from version2.0.0+.Command to install
Microsoft.Data.SQLClientpackage from dotnet CLI:Then you can use the below :
Reference:
Using Azure Active Directory authentication with SqlClient - ADO.NET Provider for SQL Server | Microsoft Docs