Explore Courses Blog Tutorials Interview Questions
0 votes
in Azure by (19.7k points)

I have an ASP.NET MVC web application deployed to Azure. I'm reading my setting using the GetEnvironmentVariable(...) method.

The problem is that I can't find a way to define this environment variable in the Azure Portal. Where can I do that?

I don't want to have this stuff in a file. Data that will be there are credentials.

1 Answer

0 votes
by (9.6k points)

1. Go to your site in Azure Portal

2. Navigate to All settings 

3. Go to Application settings

4. Include the new appsetting.{env}.json 

5.  Save your configurations. 

Browse Categories