MicrosoftLearning / mslearn-azure-ml

https://microsoftlearning.github.io/mslearn-azure-ml/
MIT License
188 stars 209 forks source link

Obsolete Azure CLI commands and YAML specs in MS Learn #86

Closed carlosjuribe closed 6 months ago

carlosjuribe commented 6 months ago

Training Module: Train models in Azure Machine Learning with the CLI (v2)

Unit: Create Azure Machine Learning resources with the CLI (v2)

Section: Create a dataset asset

Hi, I'm creating this issue here because the original page in MS Learn does not allow me to submit feedback more than once. As I already submitted feedback on one typo, here it goes the new feedback.

Versions:

1. What appears an obsolete command

image

The command az ml dataset list throws this error: 'dataset' is misspelled or not recognized by the system. Did you mean 'datastore' ?. It looks like the command is obsolete now, as to work it should say data, not dataset, like az ml data list. Same goes for the command above it, az ml dataset create --file data-local-path.yml.

2. What appears an obsolete YAML file for data asset properties

In the same page as in the point above, the YAML that specifies the dataset asset properties didn't work due to two typos:

image

(x) local_path:

image

Conclusion

In summary, the YAML specs and the command that work are:

The local data file inside a folder

datasets/
└── customer-churn.csv

The YAML file with the path field and the value specifying the path to a folder (not a file):

# data-local-path.yml
$schema: https://azuremlschemas.azureedge.net/latest/asset.schema.json
name: customer-churn-data
version: 1
path: datasets
description: Dataset pointing to customer churn CSV on local computer. Data will be uploaded to default datastore

The corrected Azure CLI command with data instead of dataset:

az ml data create --file aml_data_asset.yml

carlosjuribe commented 6 months ago

Sorry, closing this issue as this is not the proper repo for it. My bad. I re-created it at the correct repo.