CLI (v2) 注册表 YAML 架构

适用于:Azure CLI ml 扩展 v2(当前版)

源 JSON 架构可在 https://azuremlschemasprod.azureedge.net/latest/registry.schema.json 中找到。

注意

本文档中详细介绍的 YAML 语法基于最新版本的 ML CLI v2 扩展的 JSON 架构。 此语法必定仅适用于最新版本的 ML CLI v2 扩展。 可以在 https://azuremlschemasprod.azureedge.net/ 上查找早期扩展版本的架构。

YAML 语法

密钥 类型 说明 允许的值 默认值
$schema 字符串 YAML 架构。 如果使用 Azure 机器学习 VS Code 扩展来创作 YAML 文件,则可通过在文件顶部包含 $schema 来调用架构和资源完成操作。
name 字符串 必需。 注册表的名称。
tags 对象 注册表的标记字典。
location 字符串 必需。 注册表的主要位置。
replication_locations 对象 必需。 将复制的注册表关联资源的位置列表。 该列表必须包含注册表的主要位置。
publicNetworkAccess 字符串 如果注册表将使用专用链接,是否允许公共终结点访问。 enableddisabled disabled

备注

az ml registry 命令可用于管理 Azure 机器学习注册表。

示例

示例 GitHub 存储库中提供了示例。 下面的部分中显示了一些示例。

YAML:基本

name: DemoRegistry
description: Basic registry with one primary region and to additional regions
tags:
  foo: bar
location: chinanorth3
replication_locations:
  - location: chinanorth3
  - location: chinanorth3
  - location: chinaeast2
  - location: chinaeast2

YAML:与存储选项配合使用

name: DemoRegistry2
description: Registry with additional configuration for storage accounts
tags:
  foo: bar
location: chinanorth3
replication_locations:
  - location: chinanorth3
    storage_config:
      storage_account_hns: False
      storage_account_type: Standard_LRS
  - location: chinanorth3
    storage_config:
      storage_account_hns: False
      storage_account_type: Standard_LRS
  - location: chinaeast2
    storage_config:
      storage_account_hns: False
      storage_account_type: Standard_LRS

后续步骤