Skip to main content

machine_learning_compute

Creates, updates, deletes, gets or lists a machine_learning_compute resource.

Overview

Namemachine_learning_compute
TypeResource
Idazure.machine_learning_services.machine_learning_compute

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringSpecifies the resource ID.
namestringSpecifies the name of the resource.
computeLocationstringLocation for the underlying compute.
computeTypestringThe type of compute. Required. Known values are: "AKS", "AmlCompute", "ComputeInstance", "DataFactory", "VirtualMachine", "HDInsight", "Databricks", and "DataLakeAnalytics".
createdOnstring (date-time)The date and time when the compute was created.
descriptionstringThe description of the Machine Learning compute.
identityobjectThe identity of the resource.
isAttachedComputebooleanIndicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false.
locationstringSpecifies the location of the resource.
modifiedOnstring (date-time)The date and time when the compute was last modified.
provisioningErrorsarrayErrors during provisioning.
provisioningStatestringThe provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. Known values are: "Unknown", "Updating", "Creating", "Deleting", "Succeeded", "Failed", and "Canceled".
resourceIdstringARM resource id of the underlying compute.
skuobjectThe sku of the workspace.
tagsobjectContains resource tags defined as key/value pairs.
typestringSpecifies the type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, compute_name, subscription_idGets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them.
list_by_workspaceselectresource_group_name, workspace_name, subscription_id$skiptokenGets computes in specified workspace.
create_or_updateinsertresource_group_name, workspace_name, compute_name, subscription_idCreates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
updateupdateresource_group_name, workspace_name, compute_name, subscription_idUpdates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
create_or_updatereplaceresource_group_name, workspace_name, compute_name, subscription_idCreates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet.
deletedeleteresource_group_name, workspace_name, compute_name, subscription_id, underlyingResourceActionDeletes specified Machine Learning compute.
list_nodesexecresource_group_name, workspace_name, compute_name, subscription_idGet the details (e.g IP address, port etc) of all the compute nodes in the compute.
list_keysexecresource_group_name, workspace_name, compute_name, subscription_idGets secrets related to Machine Learning compute (storage keys, service credentials, etc).
startexecresource_group_name, workspace_name, compute_name, subscription_idPosts a start action to a compute instance.
stopexecresource_group_name, workspace_name, compute_name, subscription_idPosts a stop action to a compute instance.
restartexecresource_group_name, workspace_name, compute_name, subscription_idPosts a restart action to a compute instance.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
compute_namestringName of the Azure Machine Learning compute. Required.
resource_group_namestringName of the resource group in which workspace is located. Required.
subscription_idstring
underlyingResourceActionstringDelete the underlying compute if 'Delete', or detach the underlying compute from workspace if 'Detach'. Known values are: "Delete" and "Detach". Required.
workspace_namestringName of Azure Machine Learning workspace. Required.
$skiptokenstringContinuation token for pagination. Default value is None.

SELECT examples

Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them.

SELECT
id,
name,
computeLocation,
computeType,
createdOn,
description,
identity,
isAttachedCompute,
location,
modifiedOn,
provisioningErrors,
provisioningState,
resourceId,
sku,
tags,
type
FROM azure.machine_learning_services.machine_learning_compute
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND compute_name = '{{ compute_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet.

INSERT INTO azure.machine_learning_services.machine_learning_compute (
identity,
location,
tags,
sku,
properties,
resource_group_name,
workspace_name,
compute_name,
subscription_id
)
SELECT
'{{ identity }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ compute_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type
;

UPDATE examples

Updates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.

UPDATE azure.machine_learning_services.machine_learning_compute
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND compute_name = '{{ compute_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type;

REPLACE examples

Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet.

REPLACE azure.machine_learning_services.machine_learning_compute
SET
identity = '{{ identity }}',
location = '{{ location }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND compute_name = '{{ compute_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type;

DELETE examples

Deletes specified Machine Learning compute.

DELETE FROM azure.machine_learning_services.machine_learning_compute
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND compute_name = '{{ compute_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND underlyingResourceAction = '{{ underlyingResourceAction }}' --required
;

Lifecycle Methods

Get the details (e.g IP address, port etc) of all the compute nodes in the compute.

EXEC azure.machine_learning_services.machine_learning_compute.list_nodes 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@compute_name='{{ compute_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;