Within Azure, I've created a SQL server resource and a SQL Server database using my personal microsoft login. I am creating a small database for a client. I added an Azure Active Directory tenant which became the <default>. I then added a 2nd custom domain tenant for the client's domain and verified it. I set an Active Directory Admin for the server which is Ted@<my account>.onmicrosoft.com. I've added several client users to the custom domain tenant such as Lynn@<client>.com. Now I want to add the client accounts as users in my SQL Server database.
I login to SSMS with ted@<my account>.onmicrosoft.com (an AD user from the default tenant set as the AD Admin)
In SSMS I can see the master datbase and clientdb database. I can also see the user ted@<my account>.onmicrosoft.com in the list of users in the master database.
In the clientdb database, I was able to add an AD user as a contained user (from the default tenant) using the following:
CREATE USER [joe@<my account>.onmicrosoft.com] FROM EXTERNAL PROVIDER;
Now here's the problem. I can NOT add a user from the custom domain tenant:
CREATE USER [lynn@<client>.com] FROM EXTERNAL PROVIDER;
Msg 33130, Level 16, State 1, Line 8
Principal 'lynn@<client>.com' could not be found or this principal type is not supported.
I also tried (even though it's not a guest user):
CREATE USER [lynn_<client>.com#EXT#@<my account>.onmicrosoft.com] FROM EXTERNAL PROVIDER;
I've googled this for days ... please help!