Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

az ml computetarget attach

Note

This reference is part of the azure-cli-ml extension for the Azure CLI (version 2.0.28 or higher). The extension will automatically install the first time you run an az ml computetarget attach command. Learn more about extensions.

Attach subgroup commands.

Commands

Name Description Type Status
az ml computetarget attach aks

Attach an AKS cluster to the workspace.

Extension GA
az ml computetarget attach kubernetes

Attach a KubernetesCompute as a compute target to the workspace.

Extension GA
az ml computetarget attach remote

Attach a remote machine without Docker as a compute target to the workspace.

Extension GA

az ml computetarget attach aks

Attach an AKS cluster to the workspace.

az ml computetarget attach aks --compute-resource-id
 --name
 [--acquire-policy-token]
 [--change-reference]
 [--resource-group]
 [--workspace-name]

Required Parameters

--compute-resource-id -i

Resource ID of the compute object to attach to the workspace.

--name -n

Specifies the compute target name. Must be unique to the workspace.

Optional Parameters

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

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--resource-group -g

Resource group corresponding to the provided workspace. A default value for all commands can be set by running "az configure --defaults group=<resource group name>". This parameter will override any set default.

--workspace-name -w

Name of the workspace to create this compute target under. A default value for all commands can be set by running "az configure --defaults workspace_name=<workspace name>". This parameter will override any set default.

az ml computetarget attach kubernetes

Attach a KubernetesCompute as a compute target to the workspace.

az ml computetarget attach kubernetes --compute-resource-id
 --name
 [--acquire-policy-token]
 [--change-reference]
 [--namespace]
 [--resource-group]
 [--workspace-name]

Required Parameters

--compute-resource-id -i

Resource ID of the compute object to attach to the workspace.

--name -n

Specifies the compute target name. Must be unique to the workspace.

Optional Parameters

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

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--namespace

The Kubernetes namespace to which workloads for the compute target are submitted.

--resource-group -g

Resource group corresponding to the provided workspace. A default value for all commands can be set by running "az configure --defaults group=<resource group name>". This parameter will override any set default.

--workspace-name -w

Name of the workspace to create this compute target under. A default value for all commands can be set by running "az configure --defaults workspace_name=<workspace name>". This parameter will override any set default.

az ml computetarget attach remote

Attach a remote machine without Docker as a compute target to the workspace.

az ml computetarget attach remote --address
 --name
 --ssh-port
 --username
 [--acquire-policy-token]
 [--change-reference]
 [--password]
 [--private-key-file]
 [--private-key-passphrase]
 [--resource-group]
 [--workspace-name]

Required Parameters

--address -a

DNS name or IP address of the target.

--name -n

Specifies the compute target name. Must be unique to the workspace.

--ssh-port

Ssh port that can be use to connect to the compute.

Property Value
Default value: 22
--username -u

The username for the remote machine being attached. Must also provide either a password or public and private key files.

Optional Parameters

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

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--password -p

The password for the remote machine being attached. Must either provide a password or public and private key files.

--private-key-file

Path to a file containing the private key information for the remote machine being attached.

--private-key-passphrase

Passphrase for private key specified with the --private-key-file option.

--resource-group -g

Resource group corresponding to the provided workspace. A default value for all commands can be set by running "az configure --defaults group=<resource group name>". This parameter will override any set default.

--workspace-name -w

Name of the workspace to create this compute target under. A default value for all commands can be set by running "az configure --defaults workspace_name=<workspace name>". This parameter will override any set default.


Feedback

Was this page helpful?