What this covers
Environment variables let you pass configuration values such as API keys, database URLs, and feature flags to your app without hardcoding them. Values set in the portal are injected at deploy time and survive redeployments — you do not need to re-enter them after each push.
Before you start
Have the variable names and values ready. Never share secrets in support messages, code comments, or version control.
How to do it
- Open the app service in the portal and scroll to the Environment Variables section.
- Click Add Variable, enter the key name and value, then save.
- Repeat for each variable your app needs.
- Redeploy the app to apply the new values — variables are injected fresh on every deploy.
- To update a value, edit it in place and redeploy. To remove a variable, delete the entry and redeploy.
What our team checks
Support reviews whether the correct variables were set, whether a redeploy was triggered after changes, and whether the app is reading the values correctly at startup.
Next step
Add your variables from the app service detail page, then trigger a redeploy to apply them.