Open stephenhogg-des opened 1 year ago
Hi @stephenhogg-des,
2.46.0 is not the latest Azure CLI(2.51.0).
Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
Thank you for opening this issue, we will look into it.
Thank you for your feedback. This has been routed to the support team for assistance.
The same error occurs with version 2.51.0 of the CLI - it's the ML extension that has the problem
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.
Author: | stephenhogg-des |
---|---|
Assignees: | - |
Labels: | `bug`, `Service Attention`, `Machine Learning`, `customer-reported`, `needs-team-attention`, `Auto-Assign`, `Auto-Resolve` |
Milestone: | Backlog |
Adding Service team to look into this.
Describe the bug
The ML Extension of the AZ CLI does not work as advertised. It is not possible to set scale down timers.
Related command
az ml compute update
Errors
The command failed with an unexpected error. Here is the traceback: Validation for ComputeInstanceSchema failed:
{ "idle_time_before_scale_down": [ "Unknown field." ] }
Visit this link to refer to the ComputeInstance schema if needed: https://aka.ms/ml-cli-v2-compute-instance-yaml-reference. The easiest way to author a specification file is using IntelliSense and auto-completion Azure ML VS code extension provides: https://code.visualstudio.com/docs/datascience/azure-machine-learning. To set up: https://docs.microsoft.com/azure/machine-learning/how-to-setup-vs-code Traceback (most recent call last): File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\vendored_curated_sdk\azure\ai\ml\entities_util.py", line 144, in load_from_dict return schema(context=context).load(data, **kwargs) File "C:\Users\dev.hoggs.azure\cliextensions\ml\marshmallow\schema.py", line 722, in load return self._do_load( File "C:\Users\dev.hoggs.azure\cliextensions\ml\marshmallow\schema.py", line 909, in _do_load raise exc marshmallow.exceptions.ValidationError: {'idle_time_before_scale_down': ['Unknown field.']}
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 240, in handler File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 452, in cached_put File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 446, in _put_operation File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\custom\compute.py", line 343, in _ml_compute_update log_and_raise_error(err, debug) File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\custom\raise_error.py", line 181, in log_and_raise_error raise cli_error File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\custom\compute.py", line 338, in _ml_compute_update compute = ml_client.compute.begin_update(load_compute(None, params_override=params_override)) File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\vendored_curated_sdk\azure\ai\ml\entities_load_functions.py", line 329, in load_compute return load_common(Compute, source, relative_origin, kwargs) File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\vendored_curated_sdk\azure\ai\ml\entities_load_functions.py", line 112, in load_common raise e File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\vendored_curated_sdk\azure\ai\ml\entities_load_functions.py", line 96, in load_common return _load_common_raising_marshmallow_error(cls, yaml_dict, relative_origin, params_override, kwargs) File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\vendored_curated_sdk\azure\ai\ml\entities_load_functions.py", line 146, in _load_common_raising_marshmallow_error return cls._load(data=yaml_dict, yaml_path=relative_origin, params_override=params_override, kwargs) File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\vendored_curated_sdk\azure\ai\ml\entities_compute\compute.py", line 185, in _load return ComputeInstance._load_from_dict(data, context, kwargs) File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\vendored_curated_sdk\azure\ai\ml\entities_compute\compute_instance.py", line 418, in _load_from_dict loaded_data = load_from_dict(ComputeInstanceSchema, data, context, **kwargs) File "C:\Users\dev.hoggs.azure\cliextensions\ml\azext_mlv2\manual\vendored_curated_sdk\azure\ai\ml\entities_util.py", line 147, in load_from_dict raise ValidationError(decorate_validation_error(schema, pretty_error, additional_message)) from e marshmallow.exceptions.ValidationError: Validation for ComputeInstanceSchema failed:
{ "idle_time_before_scale_down": [ "Unknown field." ] }
Visit this link to refer to the ComputeInstance schema if needed: https://aka.ms/ml-cli-v2-compute-instance-yaml-reference. The easiest way to author a specification file is using IntelliSense and auto-completion Azure ML VS code extension provides: https://code.visualstudio.com/docs/datascience/azure-machine-learning. To set up: https://docs.microsoft.com/azure/machine-learning/how-to-setup-vs-code
Issue script & Debug output
Expected behavior
The
--idle-time-before-scale-down
argument ofaz ml compute update
should work as advertisedEnvironment Summary
azure-cli 2.46.0 *
core 2.46.0 telemetry 1.0.8
Extensions: ml 2.19.1 resource-graph 2.1.0
Dependencies: msal 1.20.0 azure-mgmt-resource 21.1.0b1
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe' Extensions directory 'C:\Users\dev.hoggs.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
Additional context
No response