How use environments in shared registry for deploy model on Kubernetes online endpoints?

G Cocci 216 Reputation points Microsoft Employee
2024-01-26T11:55:26.0233333+00:00

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

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,332 questions
Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.