How can I get the --env-vars in my app inside the container app?
az containerapp create \
--resource-group "my-resource-group" \
--name myQueueApp \
--environment "my-environment-name" \
--image demos/myQueueApp:v1 \
--secrets "queue-connection-string=$CONNECTIONSTRING" \
--env-vars "QueueName=myqueue" "ConnectionString=secretref:queue-connection-string"
CodePudding user response:
--env-vars
is setting environment variables on your container. You get them the same way you would normally get environment variables in a process.
See also: Where are environment variables located in a docker container