Azure / azureml-sdk-for-r

Azure Machine Learning SDK for R
https://azure.github.io/azureml-sdk-for-r/
Other
104 stars 40 forks source link

If the job type is incorrect, change the 'type' property. with Azure CLI v2 #426

Open MislavSag opened 2 years ago

MislavSag commented 2 years ago

Describe the bug If the job type is incorrect, change the 'type' property.

To Reproduce Steps to reproduce the behavior:

I have use the same structure as here: https://github.com/Azure/azureml-examples/tree/0849cbe797d1d524df9fe9d43ac8b36e75ea34ab/cli/jobs/train/r/accidents

When I run:

 az ml job create -f .\job.yml --web

I get an error:

Command group 'ml job' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Warning: the provided input type data for 'OrderedDict([('data', OrderedDict([('local_path', 'data')])), ('mode', 'mount')])' is deprecated and will be removed in a future release. Use dataset instead.
Validation for CommandJobSchema failed:

 {
  "compute": [
    {
      "_schema": [
        "Value passed is not in set ['local']"
      ]
    },
    {
      "_schema": [
        "In order to specify an existing computes, please provide either of the following prefixed with 'azureml:':\n1. The full ARM ID for the resource, e.g.azureml:/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.MachineLearningServices/workspaces/<workspace_name>/computes/<resource_name>/<version-if applicable>)\n2. The short-hand name of the resource registered in the workspace, eg: azureml:<short-hand-name>:<version-if applicable>. For example, version 1 of the environment registered as 'my-env' in the workspace can be referenced as 'azureml:my-env:1'"
      ]
    },
    {
      "_schema": [
        "Not a valid string."
      ]
    }
  ],
  "environment": [
    {
      "docker": [
        "Unknown field."
      ]
    },
    {
      "_schema": [
        "In order to specify an existing environments, please provide either of the following prefixed with 'azureml:':\n1. The full ARM ID for the resource, e.g.azureml:/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.MachineLearningServices/workspaces/<workspace_name>/environments/<resource_name>/<version-if applicable>)\n2. The short-hand name of the resource registered in the workspace, eg: azureml:<short-hand-name>:<version-if applicable>. For example, version 1 of the environment registered as 'my-env' in the workspace can be referenced as 'azureml:my-env:1'"
      ]
    }
  ]
}

 If the job type is incorrect, change the 'type' property.

Before that I have tried hello world example and it worked.

Expected behavior I expect to get results in my ML service web window as with hello world.