MLOpsPython
MLOpsPython copied to clipboard
Documentation is missing for how to set environmentVariables for the deployed model
We are currently deploying to ACI using the devops extension and yml files based off of this repo. There is not an example of how to set environment variables to pickup from our scoring script. In the running container we can see this one set (also appears in a json config from this sample. EXAMPLE_ENV_VAR | EXAMPLE_VALUE
But we have no idea how to set our own.
We recently switched to setting the dependency requirements in conda_dependency.yml and removing the environment json file. We should add the ability to set environment variables in the future.
For now, you can alter the environment you're using. You can update this python file to change restored_environment with your environment variables. (restored_environment.environment_variables).
It's not an ideal workaround - setting this as an enhancement that should be made.