【发布时间】:2016-01-22 09:37:05
【问题描述】:
我一直在尝试设置我的 IIS 网站的连接字符串,以使用以下连接字符串连接到 Azure SQL 数据库:
<add name="ConnectionString" connectionString="Server=tcp:some.database.windows.net,1433;Database=myDB;Authentication=Active Directory Integrated;" />
IIS 应用程序池正在使用具有 Azure Active Directory 权限的服务帐户,并作为用户添加到 Azure SQL 数据库中。
这在我的本地开发机器上运行良好(可能是因为它使用的是我的凭据而不是服务帐户)但是当我将站点放在 IIS 上时,我得到:
System.ArgumentException: Keyword not supported: 'authentication'.
有人知道通过 Azure AD 登录的正确语法吗?
【问题讨论】:
标签: azure iis azure-sql-database azure-active-directory