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?
14 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
should my connection be in the service dependencies.json file? Here is what my solution layout looks like...
newbie... how do I access the console?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Where should my environment variables be placed?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I have them in serviceDependencies.local.json
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
found console... that command returns blank
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
sorry ...
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Thanks for your time but I believe this is overkill. This is not a local machine issue.... I had this working fine in prior versions of .net....
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View