How use environments in shared registry for deploy model on Kubernetes online endpoints?
Hi, from our development environment we have registered within an AML Shared Registry an environment that we want to use for the deployment of the produced model in a subsequent environments (UAT, PROD). The requirement is to deploy the model in a Kubernetes online endpoint (no managed endpoint). I created the configuration file for the deployment in this way:
$schema: https://azuremlschemas.azureedge.net/latest/kubernetesOnlineDeployment.schema.json
name: blue
type: kubernetes
endpoint_name: <endpoint-name>
model: azureml://registries/<registry-name>/models/<model-name>/versions/<model-version>
instance_count: 1
code_configuration:
code: .
scoring_script: score.py
environment: azureml://registries/<registry-name>/environments/<environment-name>/versions/<environment-version>
request_settings:
request_timeout_ms: 3000
max_queue_wait_ms: 3000
instance_type: <instance-type>
scale_settings:
type: default
but when I run the command
az ml deployment create ..
it gives me this error:
"Registry reference for environments is not supported for K8SDeployment"
So it is not supported? Is there another way to retrieve this environment from the shared registry and use it for deployment? What is the best practice to follow?
Thanks,
Giorgio