Windows Authentication for SQL Managed Instance has been released in August 2022.
One of the two options available to achieve this is “Incoming trust-based authentication flow”.
When executing Set-AzureAdKerberosServer command to add the Trusted Domain Object, you may get below error message.
Set-AzureAdKerberosServer -Domain $domain `
-DomainCredential $domainCred `
-UserPrincipalName $cloudUserName `
-SetupCloudTrust
Error message:
Set-AzureADKerberosServer : LsaCreateTrustedDomainEx 0x549
This can happen when running this command on a Child Domain when on a multidomain forest scenario.
The solution is running this command on Root Domain. On Child Domain, it is necessary to run same command without the -SetupCloudTrust parameter.
As a summary, this is the procedure to create TDO on a multidomain forest :
- ROOT Domain (include -SetupCloudTrust parameter)
Set-AzureAdKerberosServer -Domain $domain `
-DomainCredential $domainCred `
-UserPrincipalName $cloudUserName `
-SetupCloudTrust
- CHILD domain (don’t include -SetupCloudTrust parameter)
Set-AzureAdKerberosServer -Domain $domain `
-DomainCredential $domainCred `
-UserPrincipalName $cloudUserName
Thank you!
Updated Jan 16, 2023
Version 1.0rmaia8
Microsoft
Joined April 07, 2022
Azure Database Support Blog
Follow this blog board to get notified when there's new activity