Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to Fabric SQL Database from MSSQL extension using connection string #18999

Open
mksuni opened this issue Mar 25, 2025 · 1 comment

Comments

@mksuni
Copy link

mksuni commented Mar 25, 2025

  • MSSQL Extension Version: 1.29.1
  • VSCode Version: 1.98.2
  • OS Version: Windows 11 Enterprise 24H2 Build 26100.3476

Steps to Reproduce:

  1. Install MSSQL extension
  2. Add new connection
  3. Choose connection string
  4. Pass a fabric SQL DB's ADO.NET connection string
  5. Error occurs as shown below

mssql: Failed to connect: Microsoft.Data.SqlClient.SqlException (0x80131904): User account not received.
---> System.Exception: User account not received.
at Microsoft.SqlTools.Authentication.Authenticator.GetTokenAsync(AuthenticationParams params, CancellationToken cancellationToken) in //src/Microsoft.SqlTools.Authentication/Authenticator.cs:line 135
at Microsoft.SqlTools.Authentication.Sql.AuthenticationProvider.AcquireTokenAsync(SqlAuthenticationParameters parameters) in /
/src/Microsoft.SqlTools.Authentication/Sql/AuthenticationProvider.cs:line 90
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.<>c__DisplayClass147_1.<b__1>d.MoveNext()
--- End of stack trace from previous location ---

@croblesm
Copy link
Contributor

croblesm commented Mar 25, 2025

Thanks for reporting this issue @mksuni. I'm also experiencing a similar problem:

mssql: Failed to connect: Microsoft.Data.SqlClient.SqlException (0x80131904): DefaultAzureCredential failed to retrieve a token from the included credentials. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/defaultazurecredential/troubleshoot - EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot - WorkloadIdentityCredential authentication unavailable. The workload options are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/workloadidentitycredential/troubleshoot - ManagedIdentityCredential authentication unavailable. No response received from the managed identity endpoint. - Visual Studio Token provider can't be accessed at /Users/carlos/.IdentityService/AzureServiceAuth/tokenprovider.json - Azure CLI authentication failed du...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants