Skip to main content

workbenches

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

Overview

Nameworkbenches
TypeResource
Idazure.cognitive_services.workbenches

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
connectivityEndpointsobjectNetwork connectivity endpoints assigned to the workbench.
creationTimestring (date-time)Creation time of the workbench resource.
datasetIdstringThe dataset ID to mount for the workbench.
errorsarrayError details for the workbench resource.
etagstringResource Etag.
identityobjectIdentity for the resource.
idleTimeBeforeShutdownstringISO 8601 duration before the idle workbench is automatically shut down (e.g., 'PT30M').
imageLinkstringContainer image URI (e.g., MCR or ACR image path) for the workbench. Required.
locationstringThe location of the workbench resource.
provisioningStatestringProvisioning state of the workbench resource. Known values are: "Accepted", "Succeeded", "Failed", "Canceled", "Deleting", "Scaling", "Disabled", "Starting", "Stopping", "Restarting", and "Stopped". (Accepted, Succeeded, Failed, Canceled, Deleting, Scaling, Disabled, Starting, Stopping, Restarting, Stopped)
sshSettingsobjectSSH configuration for remote access to the workbench.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
targetClusterIdstringARM resource ID of the parent cluster that hosts this workbench. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
webEndpointstringThe web endpoint URL for accessing the workbench.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, project_name, workbench_name, subscription_idGets the specified workbench associated with the project.
listselectresource_group_name, account_name, project_name, subscription_idGets the workbenches associated with the project.
create_or_updateinsertresource_group_name, account_name, project_name, workbench_name, subscription_id, propertiesCreates or updates a workbench associated with the project.
updateupdateresource_group_name, account_name, project_name, workbench_name, subscription_id, propertiesUpdates a workbench associated with the project.
create_or_updatereplaceresource_group_name, account_name, project_name, workbench_name, subscription_id, propertiesCreates or updates a workbench associated with the project.
deletedeleteresource_group_name, account_name, project_name, workbench_name, subscription_idDeletes the specified workbench associated with the project.
startexecresource_group_name, account_name, project_name, workbench_name, subscription_idStarts a stopped workbench resource. This is a long-running operation that returns 202 Accepted. Returns 204 if the workbench is already in the target state.
stopexecresource_group_name, account_name, project_name, workbench_name, subscription_idStops a running workbench resource. This is a long-running operation that returns 202 Accepted. Returns 204 if the workbench is already in the target state.
restartexecresource_group_name, account_name, project_name, workbench_name, subscription_idRestarts a running workbench resource. This is a long-running operation that returns 202 Accepted. Returns 204 if the workbench is already in the target state.

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
account_namestringThe name of Cognitive Services account. Required.
project_namestringThe name of Cognitive Services account's project. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workbench_namestringThe name of the workbench associated with the project. Required.

SELECT examples

Gets the specified workbench associated with the project.

SELECT
id,
name,
connectivityEndpoints,
creationTime,
datasetId,
errors,
etag,
identity,
idleTimeBeforeShutdown,
imageLink,
location,
provisioningState,
sshSettings,
systemData,
tags,
targetClusterId,
type,
webEndpoint
FROM azure.cognitive_services.workbenches
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND workbench_name = '{{ workbench_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a workbench associated with the project.

INSERT INTO azure.cognitive_services.workbenches (
properties,
location,
tags,
identity,
resource_group_name,
account_name,
project_name,
workbench_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ project_name }}',
'{{ workbench_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a workbench associated with the project.

UPDATE azure.cognitive_services.workbenches
SET
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND project_name = '{{ project_name }}' --required
AND workbench_name = '{{ workbench_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a workbench associated with the project.

REPLACE azure.cognitive_services.workbenches
SET
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND project_name = '{{ project_name }}' --required
AND workbench_name = '{{ workbench_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes the specified workbench associated with the project.

DELETE FROM azure.cognitive_services.workbenches
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND project_name = '{{ project_name }}' --required
AND workbench_name = '{{ workbench_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Starts a stopped workbench resource. This is a long-running operation that returns 202 Accepted. Returns 204 if the workbench is already in the target state.

EXEC azure.cognitive_services.workbenches.start 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@project_name='{{ project_name }}' --required,
@workbench_name='{{ workbench_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;