I am setting up an azure database to which the CRM 360 Data Export Service (DES) needs to connect. I can do this manually using SSMS and logging on using my azure account.
And then setting up the DES service account as an external provider.
CREATE USER DynamicsDataExportService FROM EXTERNAL PROVIDER
All good, however I wish to automate the process, so I need to logon to the service with in C# and connect and run the code that way.
I am running core 2.2 with System.Data.SqlClient 4.7 using the following code:
var cs = "data source=tcp:dvzxfsdg-sql.database.windows.net,1433;initial catalog=dfsdfs-sqldb; Authentication=Active Directory Integrated";
using (var connection = new SqlConnection(cs))
{
connection.Open();
Annoyingly It gives the error
"System.ArgumentException: 'Keyword not supported: 'authentication'.'".
I am pretty sure the mistake I am making is fairly basic, but I cannot seem to the get to the bottom of it. So any pointers are gratefully received.