If using custom containers, you must somehow pass env variables from main azure app service process (KUDU) to your container. For example in entrypoint or cmd you could do printenv > .env and it will create .env file with all the env vars within app service that KUDU knows about