What this means
What this means
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
Before you start
Have the variable names and values ready. Never share secrets in support messages, code comments, or version control.
Step-by-step guidance
Step-by-step guidance
- 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 CM Cloud support will review
What CM Cloud support will review
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.
What is not automated yet
What is not automated yet
This guide does not generate secret values, rotate credentials, connect external secret managers, or trigger an automatic redeploy after saving.
Safety note
Safety note
Reading this article does not capture payment, provision infrastructure, register or transfer domains, change DNS, write Cloudflare or WHMCS, call providers, start workers, create retries, or enable live execution.
Safe next action
Safe next action
Add your variables from the app service detail page, then trigger a redeploy to apply them.