Is there a way to list out the read-only app service environment variables for an Azure app service? I need the built-in variables listed here in the first section: https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu,dotnet. For example, the value of WEBSITE_HOSTNAME or SERVER_PORT
I do not need to set custom variables in Configuration => Application Settings. I need an easy list of all environment variables.
CodePudding user response:
Answer posted by Harshitha above. The information is under a lot of nested menus.
Navigate to Portal => Web App =>Go to Advanced Tools under Development Tools => Go => Click on Environment.
CodePudding user response:
- When we deploy
Azure Web App Serviceby default app will be set with read-only Environment Variables. - We can override the existing
Environment variablesinConfiguration=>App Settingssection of the deployed Web App.
We can check the environment variables in Azure Portal KUDU Console.
Path to open KUDU Console
Open Azure Portal => Select your App Service => Under Development Tools select Advanced Tools => Click on Go

Way 1 :
In KUDU Console Click on Environment, list of default and the Variables you created in App settings will be seen.

Way 2 :
In KUDU Console Click on Debug console and select CMD , run printenv command.

