az.machinelearningservices
Manage Azure Machine Learning services resources.
Overview
This module provides commands for managing your Azure Machine Learning workspace, experiments, models, endpoints, and other related resources. It allows you to automate machine learning workflows, deploy models, and monitor your ML solutions.
Commands
az ml workspace
Manage Azure Machine Learning workspaces.
az ml workspace --helpSubcommands:
- create: Create a new Azure Machine Learning workspace.
- delete: Delete an Azure Machine Learning workspace.
- list: List all Azure Machine Learning workspaces in a resource group or subscription.
- show: Get the details of an Azure Machine Learning workspace.
- update: Update an Azure Machine Learning workspace.
az ml experiment
Manage Azure Machine Learning experiments.
az ml experiment --helpSubcommands:
- create: Create a new experiment.
- delete: Delete an experiment.
- list: List experiments in a workspace.
- show: Get the details of an experiment.
az ml model
Manage Azure Machine Learning models.
az ml model --helpSubcommands:
- register: Register a model in the workspace.
- list: List registered models in the workspace.
- show: Get the details of a registered model.
- delete: Delete a registered model.
- download: Download a registered model.
az ml endpoint
Manage Azure Machine Learning endpoints (online and batch).
az ml endpoint --helpSubcommands:
- create: Create a new endpoint.
- delete: Delete an endpoint.
- list: List endpoints in a workspace.
- show: Get the details of an endpoint.
- update: Update an endpoint.
Example Usage
Creating an Azure Machine Learning Workspace
This command creates a new Azure Machine Learning workspace in a specified resource group and region.
az ml workspace create \
  --name my-ml-workspace \
  --resource-group my-resource-group \
  --location eastusRegistering a Model
This command registers a local model file or directory as a new model in your Azure Machine Learning workspace.
az ml model register \
  --workspace-name my-ml-workspace \
  --resource-group my-resource-group \
  --name my-registered-model \
  --version 1 \
  --path ./my_model_directory/Parameters:
| Name | Description | Required | 
|---|---|---|
| --workspace-name | The name of the workspace. | Yes | 
| --resource-group | Name of resource group. You can configure the default group using az configure --defaults group=<name>. | Yes | 
| --name | The name of the model. | Yes | 
| --version | The version of the model. | No | 
| --path | The path to the model file or directory. | Yes |