© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
langehk

❔ ConnectionString to Azure SQL Server

I have created the following sql server in Azure, copied the ConnectionString and pasted in my appsettings.
My issue is the "Authentication="Active Directory Default" . Which looks like it's being formatted incorrectly. I've also tried to put it on the same line. The application won't start. But I'm able to connect to it from SSMS.

Server=tcp:dbname.database.windows.net,1433;Initial Catalog=dbname;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;Authentication="Active Directory Default";
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Azure daemon SQL database Authentication
C#CC# / help
3y ago
❔ The ConnectionString property has not been initialized error coming on accessing the sql server
C#CC# / help
3y ago
❔ Establishing a connection to SQL Server in Mac (Azure data studio & Docker desktop)
C#CC# / help
3y ago