2

I have a .net Framework Web App running in Azure. In my code I have a line that gets an environment variable:

var x = System.Environment.GetEnvironmentVariable("MY_Setting_Name");

How do I set/view this setting in the Azure portal? is it the same place as app settings? becuase I thought that was for the settings in the web-config file.

Ayo Adesina
  • 2,231
  • 3
  • 37
  • 71

1 Answers1

5

Just go to Configuration -> Application settings and create key value pairs that will be read by your application.

enter image description here

enter image description here

More info: https://learn.microsoft.com/en-us/azure/app-service/configure-common#configure-app-settings

Thiago Custodio
  • 17,332
  • 6
  • 45
  • 90