Thank you for reaching out to the Microsoft Q & A Forum.
Please check below things to fix the issue.
- Ensure you’re on mssql extension >= v1.35.0 and VS Code >= 1.103.x.
- Enable verbose Azure auth logs.
Set
"mssql.tracingLevel": "Verbose"
Then open MSSQL Azure Auth Logs or SqlToolsService to check for missing azureAccounts.
- Clear VS Code token cache
In Command Palette:
MS SQL: Remove Microsoft Entra Account
MS SQL: Clear Microsoft Entra account token cache
- On Windows, delete old aad-iv, aad-key entries from Credential Manager to force a fresh sign-in.
- Using Entra Service Principal authentication is not supported in the mssql extension, only user MFA login works.
- Ensure .NET Runtime 6+ is installed and SQL Tools Service is functioning properly.
I hope this information helps. Please do let us know if you have any further queries.
Regards,
Dinesh