【发布时间】:2018-01-22 13:21:17
【问题描述】:
我想在 .Net Core App 1.1 中使用 Azure Active Directory 身份验证连接到我的 Azure SQL 服务器。
关于使用类似于以下连接字符串的连接字符串:
Data Source=n9lxnyuzhv.database.windows.net; Authentication=Active Directory Integrated; Initial Catalog=testdb;
我得到了这个例外:
System.ArgumentException: 'Keyword not supported: 'authentication'.'
我了解 AAD Auth 可用于 .Net Framework 4.6 及更高版本中的 SQL 服务器。是否可以通过 .Net Core Apps 中的 AAD 连接到服务器。如果有,怎么做?
感谢任何帮助。
【问题讨论】:
标签: asp.net sql-server azure azure-active-directory asp.net-core-1.1