Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MislavSag opened this issue Jan 17, 2022 · 0 comments

Comments

@MislavSag
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant