ActiveDirectoryIntegrated login to Azure SQL server from linux VM.
we have federated Azure AD using on prem DC. Later we create a linux instance and joined it to AAD using Azure ADDS and trying to connect to Azure SQL server using ActiveDirectoryIntegrated based authentication.
we are facing this error when trying to login to SQL
sqlcmd -E -S **************** -d **************
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Failed to authenticate the user '' in Active Directory (Authentication option is 'ActiveDirectoryIntegrated').
Error code 0x191; state 401
Error requesting SAML token.
.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Timeout error [258]. .
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Unable to complete login process due to delay in login response.
We followed the doc for connecting linux server to AD https://learn.microsoft.com/en-us/azure/active-directory-domain-services/join-ubuntu-linux-vm
Similar thing is working for Windows based VM.