In Azure Portal I have several "Function apps" and "App Services" that have Environment variables. Environment variables can have "App Settings" and "Connections strings".
I like to list "Environment Variables", for all services, by Name and Value.
My goal is to check for any wrong settings so I like all "Environment Variables" in a long list.
How can I do this from Azure Cloud Shell?
Thanks,
2
Answers
You can use the following Azure CLI commands to list configuration settings of App Services and Function Apps.
App Services:
Function Apps:
If you need to filter variables by type (App Settings, Azure SQL Database connection strings, custom connection strings, etc) take a look into the variable prefixes.
To list all Environment variables from all App Services and Function Apps, you can make use of below sample PowerShell script:
Response:
AllEnvironmentVariables.csv: