title | titleSuffix | description | services | ms.service | ms.subservice | ms.topic | ms.custom | author | ms.author | ms.date | ms.reviewer |
---|---|---|---|---|---|---|---|---|---|---|---|
CLI (v2) data YAML schema |
Azure Machine Learning |
Reference documentation for the CLI (v2) data YAML schema. |
machine-learning |
machine-learning |
mldata |
reference |
cliv2, event-tier1-build-2022 |
ynpandey |
yogipandey |
03/31/2022 |
nibaccam |
[!INCLUDE cli v2]
The source JSON schema can be found at https://azuremlschemas.azureedge.net/latest/data.schema.json.
[!INCLUDE schema note]
Key | Type | Description | Allowed values | Default value |
---|---|---|---|---|
$schema |
string | The YAML schema. If you use the Azure Machine Learning VS Code extension to author the YAML file, including $schema at the top of your file enables you to invoke schema and resource completions. |
||
name |
string | Required. Name of the data asset. | ||
version |
string | Version of the dataset. If omitted, Azure ML will autogenerate a version. | ||
description |
string | Description of the data asset. | ||
tags |
object | Dictionary of tags for the data asset. | ||
type |
string | The data asset type. Specify uri_file for data that points to a single file source, or uri_folder for data that points to a folder source. |
uri_file , uri_folder |
uri_folder |
path |
string | Either a local path to the data source file or folder, or the URI of a cloud path to the data source file or folder. Please ensure that the source provided here is compatible with the type specified. Supported URI types are azureml , https , wasbs , abfss , and adl . See Core yaml syntax for more information on how to use the azureml:// URI format. |
The az ml data
commands can be used for managing Azure Machine Learning data assets.
Examples are available in the examples GitHub repository. Several are shown below.
:::code language="yaml" source="~/azureml-examples-main/cli/assets/data/cloud-file.yml":::
:::code language="yaml" source="~/azureml-examples-main/cli/assets/data/cloud-folder.yml":::
:::code language="yaml" source="~/azureml-examples-main/cli/assets/data/cloud-file-https.yml":::
:::code language="yaml" source="~/azureml-examples-main/cli/assets/data/cloud-folder-https.yml":::
:::code language="yaml" source="~/azureml-examples-main/cli/assets/data/cloud-file-wasbs.yml":::
:::code language="yaml" source="~/azureml-examples-main/cli/assets/data/cloud-folder-wasbs.yml":::
:::code language="yaml" source="~/azureml-examples-main/cli/assets/data/local-file.yml":::
:::code language="yaml" source="~/azureml-examples-main/cli/assets/data/local-folder.yml":::