I have a simple bash script which creates a container and runs a task in it:
api=${1}
az container create \
--resource-group "my_resource_group" \
--file container.yaml \
--environment-variables "APIKEY"="${api}"
But the variable APIKEY never gets the value from this call, but always from the "default" value in container.yaml.
How do I create a container instance with the whole definition in .yaml and pass environment variables in the command az container create
?