且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Azure Active Directory从Azure网站连接到Azure SQL?

更新时间:2023-02-15 12:26:04

通过使用Azure Active Directory身份验证,有三种方式连接到SQL数据库。

There are three ways connecting to SQL database by using Azure Active Directory authentication.


  1. 使用集成(Windows)身份验证连接

  2. 使用Azure AD主体名称和密码连接

  3. 使用Azure AD令牌连接

有关Azure SQL数据库的Azure AD身份验证的更多详细信息,可以参考

More detail about the Azure AD authentication for the Azure SQL database, you can refer here.

如果您尝试使用访问令牌连接,则由此 >是有帮助的此外,熟悉Azure AD的身份验证和客户端凭据流使用此链接

And if you were trying the config the connecting with access token the code sample provided by this blog is helpful. Also it is helpful to familiar with to authenticate with Azure AD with the client credential flow using the certificate from this link.

根据我的理解,您使用的连接字符串不会影响实体框架提供的连接恢复功能。

And based on my understanding, the connection string you used doesn't effect the Connection Resiliency feature which provided by the Entity Framework.