An Azure relational database service.
How to fix code throwing exception : Microsoft.Data.SqlClient.SqlException: 'Login failed for user '
Hi All,
I'm encountering an issue while trying to connect to an Azure SQL Database using Microsoft Entra Authentication (formerly Azure AD). I am using DefaultAzureCredential in my .NET application to authenticate and retrieve the access token, but while the token is successfully generated, I am getting the following error during authentication:
Error encountered:
*"Microsoft.Data.SqlClient.SqlException: 'Login failed for user '
Azure SQL Database
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
SQL Server | Other
Additional SQL Server features and topics not covered by specific categories
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
3 answers
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted comment
Comments have been turned off. Learn more