Hello,
I created an Azure function app using C# and fetched my data using SQL queries. I am facing a problem connecting with the SQL server with an MFA-enabled account. I tried to use several ways and will add the links below. Each time I tried a way to connect I get an error.
c# - How to connect to a database using Active directory Login and MultiFactor Authentication (MFA) - Stack Overflow
Connect to Dynamics 365 Multi-Factor Authentication using C# | Check this Guide Now (dynamics365book.com)
If anyone has figured out a way to connect to the SQL server in C# please help me out.
Thank you in advance.
Hello Eiken ,
This is the error I am getting when trying to create an SQL connection with MFA enabled account. I am trying to find a way to use this account without removing the multi-factor authentication.
Hi,
Would you please provide some details or screenshots about the error?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
DAnny3211 433
Abhilash Warrier 137 Super User 2025 Season 2
Martin Dráb 67 Most Valuable Professional