CLI (v2) batch endpoint YAML schema

The source JSON schema can be found at


This feature is currently in public preview. This preview version is provided without a service-level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

YAML syntax

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 endpoint. Needs to be unique at the Azure region level.
description string Description of the endpoint.
tags object Dictionary of tags for the endpoint.
auth_mode string The authentication method for the endpoint. Currently only Azure Active Directory (Azure AD) token-based authentication is supported. aad_token aad_token
defaults object Default settings for the endpoint.
defaults.deployment_name string Name of the deployment that will serve as the default deployment for the endpoint.


The az ml batch-endpoint commands can be used for managing Azure Machine Learning endpoints.


Examples are available in the examples GitHub repository. Several are shown below.

YAML: basic

name: mybatchedp
description: my sample batch endpoint
auth_mode: aad_token

Next steps