Azure / Azure/azure-cli-extensions

azure ml cli issue for pipelinecomponent deployment

Open
#8,351 2 comments 0 reactions 0 assignees View on GitHub
Auto-Assign bug customer-reported extension/ml Machine Learning Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

When trying to validate the template in vs code I get the error invalid resource type provided. This is also the case with any of the default templates given as examples on github.

Note, last week the templates were working.

### Related command

az ml component create --file

### Errors

Invalid resource type provided when trying to run in vs code

When running azure devops the following error is returned

`{
"result": "Failed",
"errors": [
{
"message": "{'type': [{'_schema': ['Value passed is not a data binding string: string']}, {'_schema': [\"Value 'string' passed is not in set ['uri_file', 'uri_folder']\"]}], 'default': ['Unknown field.']}; {'type': [{'_schema': ['Value passed is not a data binding string: string']}, {'_schema': [\"Value 'string' passed is not in set ['custom_model', 'mlflow_model', 'triton_model']\"]}], 'default': ['Unknown field.']}; {'type': [{'_schema': ['Value passed is not a data binding string: string']}, {'_schema': [\"Value 'string' passed is not in set ['mltable']\"]}], 'default': ['Unknown field.']}; {'type': ['Unknown field.'], 'default': ['Unknown field.']}; {None: [{'_schema': ['Not a valid integer.']}, {'_schema': ['Not a valid number.']}, {'_schema': ['Not a valid string.']}, {'_schema': ['Not a valid boolean.']}]}",
"path": "inputs.listid",
"value": {
"type": "string",
"default": "test"
},
"location": "D:\\a\\1\\s\\yaml\\config\\pipelines\\pipeline.yml#line 9"
}
]
}`

### Issue script & Debug output

When running even default templates share on the github this issue occurs https://github.com/Azure/azureml-examples/blob/main/cli/endpoints/batch/deploy-pipelines/batch-scoring-with-preprocessing/pipeline.yml

### Expected behavior

Last week these templates were working perfectly fine, that would be the expectation.

### Environment Summary

azure-cli 2.67.0

core 2.67.0
telemetry 1.1.0

Extensions:
azure-devops 1.0.1
ml 2.32.4

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Program Files\Common Files\AzureCliExtensionDirectory'

Python (Windows) 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]

### Additional context

This i quite a blocking issue at the moment for our team as we wont be able to deploy our work to production so appreciate any attention to this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.