az ml computetarget attach
Note
此参考是 Azure CLI(版本 2.0.28 或更高版本)的 azure-cli-ml 扩展的一部分。 该扩展将在首次运行 az ml computetarget attach 命令时自动安装。 了解更多关于扩展的信息。
附加子组命令。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
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 attach aks
将 AKS 群集附加到工作区。
az ml computetarget attach aks --compute-resource-id
--name
[--resource-group]
[--workspace-name]
必需参数
要附加到工作区的计算对象的资源 ID。
指定计算目标名称。 工作区必须是唯一的。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
与提供的工作区对应的资源组。 可以通过运行“az configure --defaults group=<resource group name>”来设置所有命令的默认值。 此参数将替代任何设置的默认值。
要在其中创建此计算目标的工作区的名称。 可以通过运行“az configure --defaults workspace_name=<workspace name>”来设置所有命令的默认值。 此参数将替代任何设置的默认值。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az ml computetarget attach kubernetes
将 KubernetesCompute 作为计算目标附加到工作区。
az ml computetarget attach kubernetes --compute-resource-id
--name
[--namespace]
[--resource-group]
[--workspace-name]
必需参数
要附加到工作区的计算对象的资源 ID。
指定计算目标名称。 工作区必须是唯一的。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
将计算目标的工作负荷提交到的 Kubernetes 命名空间。
与提供的工作区对应的资源组。 可以通过运行“az configure --defaults group=<resource group name>”来设置所有命令的默认值。 此参数将替代任何设置的默认值。
要在其中创建此计算目标的工作区的名称。 可以通过运行“az configure --defaults workspace_name=<workspace name>”来设置所有命令的默认值。 此参数将替代任何设置的默认值。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az ml computetarget attach remote
将没有 Docker 的远程计算机作为计算目标附加到工作区。
az ml computetarget attach remote --address
--name
--ssh-port
--username
[--password]
[--private-key-file]
[--private-key-passphrase]
[--resource-group]
[--workspace-name]
必需参数
目标的 DNS 名称或 IP 地址。
指定计算目标名称。 工作区必须是唯一的。
可用于连接到计算的 Ssh 端口。
属性 | 值 |
---|---|
默认值: | 22 |
要附加的远程计算机的用户名。 还必须提供密码或公钥和私钥文件。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
要附加的远程计算机的密码。 必须提供密码或公钥和私钥文件。
包含所附加远程计算机的私钥信息的文件的路径。
使用 --private-key-file 选项指定的私钥的通行短语。
与提供的工作区对应的资源组。 可以通过运行“az configure --defaults group=<resource group name>”来设置所有命令的默认值。 此参数将替代任何设置的默认值。
要在其中创建此计算目标的工作区的名称。 可以通过运行“az configure --defaults workspace_name=<workspace name>”来设置所有命令的默认值。 此参数将替代任何设置的默认值。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
输出格式。
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |