MLOpsPython icon indicating copy to clipboard operation
MLOpsPython copied to clipboard

Documentation is missing for how to set environmentVariables for the deployed model

Open mattk09 opened this issue 5 years ago • 1 comments
trafficstars

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.

mattk09 avatar Apr 30 '20 01:04 mattk09

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.

j-so avatar Apr 30 '20 19:04 j-so