Skip to main content

computes

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

Overview

Namecomputes
TypeResource
Idazure.ml_services.computes

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
descriptiontextfield from the properties object
computeNametextfield from the properties object
compute_locationtextfield from the properties object
compute_typetextfield from the properties object
created_ontextfield from the properties object
disable_local_authtextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
is_attached_computetextfield from the properties object
locationtextSpecifies the location of the resource.
modified_ontextfield from the properties object
provisioning_errorstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextContains resource tags defined as key/value pairs.
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcomputeName, resourceGroupName, subscriptionId, workspaceNameGets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them.
listSELECTresourceGroupName, subscriptionId, workspaceNameGets computes in specified workspace.
create_or_updateINSERTcomputeName, resourceGroupName, subscriptionId, workspaceNameCreates 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.
deleteDELETEcomputeName, resourceGroupName, subscriptionId, underlyingResourceAction, workspaceNameDeletes specified Machine Learning compute.
updateUPDATEcomputeName, resourceGroupName, subscriptionId, workspaceNameUpdates properties of a compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation.
resizeEXECcomputeName, resourceGroupName, subscriptionId, workspaceNameUpdates the size of a Compute Instance.
restartEXECcomputeName, resourceGroupName, subscriptionId, workspaceNamePosts a restart action to a compute instance
startEXECcomputeName, resourceGroupName, subscriptionId, workspaceNamePosts a start action to a compute instance
stopEXECcomputeName, resourceGroupName, subscriptionId, workspaceNamePosts a stop action to a compute instance

SELECT examples

Gets computes in specified workspace.

SELECT
id,
name,
description,
computeName,
compute_location,
compute_type,
created_on,
disable_local_auth,
identity,
is_attached_compute,
location,
modified_on,
provisioning_errors,
provisioning_state,
resourceGroupName,
resource_id,
sku,
subscriptionId,
system_data,
tags,
type,
workspaceName
FROM azure.ml_services.vw_computes
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new computes resource.

/*+ create */
INSERT INTO azure.ml_services.computes (
computeName,
resourceGroupName,
subscriptionId,
workspaceName,
properties,
identity,
location,
tags,
sku
)
SELECT
'{{ computeName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}',
'{{ identity }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}'
;

UPDATE example

Updates a computes resource.

/*+ update */
UPDATE azure.ml_services.computes
SET
properties = '{{ properties }}'
WHERE
computeName = '{{ computeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified computes resource.

/*+ delete */
DELETE FROM azure.ml_services.computes
WHERE computeName = '{{ computeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND underlyingResourceAction = '{{ underlyingResourceAction }}'
AND workspaceName = '{{ workspaceName }}';