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 --help

Subcommands:

az ml experiment

Manage Azure Machine Learning experiments.

az ml experiment --help

Subcommands:

az ml model

Manage Azure Machine Learning models.

az ml model --help

Subcommands:

az ml endpoint

Manage Azure Machine Learning endpoints (online and batch).

az ml endpoint --help

Subcommands:

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 eastus

Registering 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