你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az ml computetarget

Note

This reference is part of the azure-cli-ml extension for the Azure CLI (version 2.0.28 or higher). 该扩展将在首次运行 az ml computetarget 命令时自动安装。 Learn more about extensions.

Computetarget 子组命令。

命令

名称 说明 类型 Status
az ml computetarget amlcompute

AzureML 计算命令。

Extension GA
az ml computetarget amlcompute identity

AzureML 计算目标标识命令。

Extension GA
az ml computetarget amlcompute identity assign

将标识分配给 AzureML 计算目标。

Extension GA
az ml computetarget amlcompute identity remove

从 AzureML 计算目标中删除标识。

Extension GA
az ml computetarget amlcompute identity show

显示 AzureML 计算目标的标识。

Extension GA
az ml computetarget attach

附加子组命令。

Extension GA
az ml computetarget attach aks

将 AKS 群集附加到工作区。

Extension GA
az ml computetarget attach kubernetes

将 KubernetesCompute 作为计算目标附加到工作区。

Extension GA
az ml computetarget attach remote

将没有 Docker 的远程计算机作为计算目标附加到工作区。

Extension GA
az ml computetarget computeinstance

AzureML 计算实例命令。

Extension GA
az ml computetarget computeinstance restart

重启计算实例。

Extension GA
az ml computetarget computeinstance start

启动计算实例。

Extension GA
az ml computetarget computeinstance stop

停止计算实例。

Extension GA
az ml computetarget create

创建计算目标(aks 或 amlcompute 或 computeinstance)。

Extension GA
az ml computetarget create aks

创建 AKS 计算目标。

Extension GA
az ml computetarget create amlcompute

创建 AzureML 计算目标。

Extension GA
az ml computetarget create computeinstance

创建 AzureML 计算实例目标。

Extension GA
az ml computetarget create datafactory

创建数据工厂计算目标。

Extension GA
az ml computetarget delete

删除计算目标(aks 或 amlcompute 或 computeinstance)。

Extension GA
az ml computetarget detach

从工作区中分离计算目标(aks 或远程)。

Extension GA
az ml computetarget get-credentials

获取计算目标(aks 或远程)的凭据。

Extension GA
az ml computetarget list

列出附加到工作区的所有计算目标。

Extension GA
az ml computetarget show

显示特定计算目标的详细信息。

Extension GA
az ml computetarget update

更新计算目标(aks 或 amlcompute)。

Extension GA
az ml computetarget update aks

更新 AKS 计算目标。

Extension GA
az ml computetarget update amlcompute

更新 AzureML 计算目标。

Extension GA

az ml computetarget delete

删除计算目标(aks 或 amlcompute 或 computeinstance)。

az ml computetarget delete --name
                           [--path]
                           [--resource-group]
                           [--subscription-id]
                           [--workspace-name]
                           []

必需参数

--name -n

要删除的计算目标的名称。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--path

项目文件夹的路径。 默认值:当前目录。

--resource-group -g

与提供的工作区对应的资源组。

--subscription-id

指定订阅 ID。

--workspace-name -w

包含要删除的环境的工作区的名称。

-v

Verbosity flag.

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az ml computetarget detach

从工作区中分离计算目标(aks 或远程)。

az ml computetarget detach --name
                           [--path]
                           [--resource-group]
                           [--subscription-id]
                           [--workspace-name]
                           []

必需参数

--name -n

要分离的计算目标的名称。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--path

项目文件夹的路径。 默认值:当前目录。

--resource-group -g

与提供的工作区对应的资源组。

--subscription-id

指定订阅 ID。

--workspace-name -w

包含要分离的环境的工作区的名称。

-v

Verbosity flag.

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az ml computetarget get-credentials

获取计算目标(aks 或远程)的凭据。

az ml computetarget get-credentials --name
                                    [--path]
                                    [--resource-group]
                                    [--subscription-id]
                                    [--workspace-name]
                                    []

必需参数

--name -n

要检索其密钥的计算目标的名称。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--path

项目文件夹的路径。 默认值:当前目录。

--resource-group -g

与提供的工作区对应的资源组。

--subscription-id

指定订阅 ID。

--workspace-name -w

包含要获取其凭据的计算目标的工作区的名称。

-v

Verbosity flag.

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az ml computetarget list

列出附加到工作区的所有计算目标。

az ml computetarget list [--path]
                         [--resource-group]
                         [--subscription-id]
                         [--workspace-name]
                         []

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--path

项目文件夹的路径。 默认值:当前目录。

--resource-group -g

与提供的工作区对应的资源组。

--subscription-id

指定订阅 ID。

--workspace-name -w

包含要显示的计算目标的工作区的名称。

-v

Verbosity flag.

属性
默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False

az ml computetarget show

显示特定计算目标的详细信息。

az ml computetarget show --name
                         [--path]
                         [--resource-group]
                         [--subscription-id]
                         [--workspace-name]
                         []

必需参数

--name -n

要显示的计算目标的名称。

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--path

项目文件夹的路径。 默认值:当前目录。

--resource-group -g

与提供的工作区对应的资源组。

--subscription-id

指定订阅 ID。

--workspace-name -w

包含要显示的计算目标的工作区的名称。

-v

Verbosity flag.

属性
默认值: False
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

Output format.

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False