© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
26 replies
danno8524

Get Environment Variables...

I am trying to get the connection string for my Azure Tables with the following code.
TableServiceClient tableServiceClient = new TableServiceClient(Environment.GetEnvironmentVariable("StorageConnectionString"));

This is returning a null value... My question is where should I be storing this connection string in a ASP.net core 6.0 app?
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

❔ Environment variables in tests
C#CC# / help
3y ago
EF Core and environment variables
C#CC# / help
2y ago
Environment Variables/Persistent Values in OpenSilver
C#CC# / help
3y ago
❔ Can't change environment variables in Rider
C#CC# / help
3y ago