Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.machine_learning_services.workspaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringSpecifies the resource ID.
namestringSpecifies the name of the resource.
allowPublicAccessWhenBehindVnetbooleanThe flag to indicate whether to allow public access when behind VNet.
applicationInsightsstringARM id of the application insights associated with this workspace. This cannot be changed once the workspace has been created.
containerRegistrystringARM id of the container registry associated with this workspace. This cannot be changed once the workspace has been created.
creationTimestring (date-time)The creation time of the machine learning workspace in ISO8601 format.
descriptionstringThe description of this workspace.
discoveryUrlstringUrl for the discovery service to identify regional endpoints for machine learning experimentation services.
encryptionobjectThe encryption settings of Azure ML workspace.
friendlyNamestringThe friendly name for this workspace. This name in mutable.
hbiWorkspacebooleanThe flag to signal HBI data in the workspace and reduce diagnostic data collected by the service.
identityobjectThe identity of the resource.
imageBuildComputestringThe compute name for image build.
keyVaultstringARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created.
locationstringSpecifies the location of the resource.
notebookInfoobjectThe notebook info of Azure ML workspace.
privateEndpointConnectionsarrayThe list of private endpoint connections in the workspace.
privateLinkCountintegerCount of private connections in the workspace.
provisioningStatestringThe current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. Known values are: "Unknown", "Updating", "Creating", "Deleting", "Succeeded", "Failed", and "Canceled".
serviceProvisionedResourceGroupstringThe name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace.
sharedPrivateLinkResourcesarrayThe list of shared private link resources in this workspace.
skuobjectThe sku of the workspace.
storageAccountstringARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created.
tagsobjectContains resource tags defined as key/value pairs.
typestringSpecifies the type of the resource.
workspaceIdstringThe immutable id associated with this workspace.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, subscription_idGets the properties of the specified machine learning workspace.
list_by_resource_groupselectresource_group_name, subscription_id$skiptokenLists all the available machine learning workspaces under the specified resource group.
list_by_subscriptionselectsubscription_id$skiptokenLists all the available machine learning workspaces under the specified subscription.
create_or_updateinsertresource_group_name, workspace_name, subscription_idCreates or updates a workspace with the specified parameters.
updateupdateresource_group_name, workspace_name, subscription_idUpdates a machine learning workspace with the specified parameters.
create_or_updatereplaceresource_group_name, workspace_name, subscription_idCreates or updates a workspace with the specified parameters.
deletedeleteresource_group_name, workspace_name, subscription_idDeletes a machine learning workspace.
list_keysexecresource_group_name, workspace_name, subscription_idLists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry.
resync_keysexecresource_group_name, workspace_name, subscription_idResync all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry.

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
resource_group_namestringName of the resource group in which workspace is located. Required.
subscription_idstring
workspace_namestringName of Azure Machine Learning workspace. Required.
$skiptokenstringContinuation token for pagination. Default value is None.

SELECT examples

Gets the properties of the specified machine learning workspace.

SELECT
id,
name,
allowPublicAccessWhenBehindVnet,
applicationInsights,
containerRegistry,
creationTime,
description,
discoveryUrl,
encryption,
friendlyName,
hbiWorkspace,
identity,
imageBuildCompute,
keyVault,
location,
notebookInfo,
privateEndpointConnections,
privateLinkCount,
provisioningState,
serviceProvisionedResourceGroup,
sharedPrivateLinkResources,
sku,
storageAccount,
tags,
type,
workspaceId
FROM azure.machine_learning_services.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a workspace with the specified parameters.

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

UPDATE examples

Updates a machine learning workspace with the specified parameters.

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

REPLACE examples

Creates or updates a workspace with the specified parameters.

REPLACE azure.machine_learning_services.workspaces
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 subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type;

DELETE examples

Deletes a machine learning workspace.

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

Lifecycle Methods

Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry.

EXEC azure.machine_learning_services.workspaces.list_keys 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;