2016-01-22 126 views
1

我一直在试图建立我的IIS网站的连接字符串与以下连接字符串连接到Azure的SQL数据库:Azure的Active Directory连接字符串

<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登录?

回答