Using AAD login on SQL contained availability groups

EvHulsel 0 Reputation points
2024-09-24T08:29:36.1733333+00:00

I've been looking into SQL 2022's new feature of logging in on SQL servers with Entra ID accounts and got it working on the SQL server nodes in a cluster. I can't figure out if/how it can be done on instances using contained availability groups. As those have their own security settings I'm fairly sure this can't be done, but can't really find anything official on the matter.

When I try to add an account it says the "CREATE LOGIN FROM EXTERNAL PROVIDER command is not supported as Azure Active Directory is not configured fot this instance." Azure obviously doesn't know of its existence: it's not an SQL virtual machine and thus can't be configured for Microsoft Entra authentication.

Or am I missing something?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,865 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,903 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.