az ml code

Note

This reference is part of the ml extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az ml code command. Learn more about extensions.

Manage Azure ML code assets.

Azure ML code assets are references to code file(s) in storage. Code assets are created automatically when you submit training jobs or deploy a model for inference.

Commands

az ml code show

Show details for a code asset.

az ml code show

Show details for a code asset.

az ml code show --name
                --resource-group
                --version
                --workspace-name

Examples

Show details for a code asset with the specified name and version

az ml code show --name my-code --version 1 --resource-group my-resource-group --workspace-name my-workspace

Required Parameters

--name -n

Name of the code asset.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--version -v

Version of the code asset.

--workspace-name -w

Name of the Azure ML workspace. You can configure the default group using az configure --defaults workspace=<name>.