Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.ml_services.workspaces

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
allow_public_access_when_behind_vnettextfield from the properties object
allow_role_assignment_on_rgtextfield from the properties object
application_insightstextfield from the properties object
associated_workspacestextfield from the properties object
container_registriestextfield from the properties object
container_registrytextfield from the properties object
discovery_urltextfield from the properties object
enable_data_isolationtextfield from the properties object
enable_service_side_cmk_encryptiontextfield from the properties object
enable_simplified_cmktextfield from the properties object
enable_software_bill_of_materialstextfield from the properties object
encryptiontextfield from the properties object
existing_workspacestextfield from the properties object
feature_store_settingstextfield from the properties object
friendly_nametextfield from the properties object
hbi_workspacetextfield from the properties object
hub_resource_idtextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
image_build_computetextfield from the properties object
ip_allowlisttextfield from the properties object
key_vaulttextfield from the properties object
key_vaultstextfield from the properties object
kindtextfield from the properties object
locationtextfield from the properties object
managed_networktextfield from the properties object
ml_flow_tracking_uritextfield from the properties object
notebook_infotextfield from the properties object
primary_user_assigned_identitytextfield from the properties object
private_endpoint_connectionstextfield from the properties object
private_link_counttextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
serverless_compute_settingstextfield from the properties object
service_managed_resources_settingstextfield from the properties object
service_provisioned_resource_grouptextfield from the properties object
shared_private_link_resourcestextfield from the properties object
skutextThe resource model definition representing SKU
soft_delete_retention_in_daystextfield from the properties object
storage_accounttextfield from the properties object
storage_accountstextfield from the properties object
storage_hns_enabledtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
system_datastores_auth_modetextfield from the properties object
tagstextfield from the properties object
tenant_idtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
v1_legacy_modetextfield from the properties object
workspaceNametextfield from the properties object
workspace_hub_configtextfield from the properties object
workspace_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workspaceName
list_by_resource_groupSELECTresourceGroupName, subscriptionId
list_by_subscriptionSELECTsubscriptionId
create_or_updateINSERTresourceGroupName, subscriptionId, workspaceName, data__properties
deleteDELETEresourceGroupName, subscriptionId, workspaceName
updateUPDATEresourceGroupName, subscriptionId, workspaceName
diagnoseEXECresourceGroupName, subscriptionId, workspaceName
prepare_notebookEXECresourceGroupName, subscriptionId, workspaceName
resync_keysEXECresourceGroupName, subscriptionId, workspaceName

SELECT examples

SELECT
id,
name,
description,
allow_public_access_when_behind_vnet,
allow_role_assignment_on_rg,
application_insights,
associated_workspaces,
container_registries,
container_registry,
discovery_url,
enable_data_isolation,
enable_service_side_cmk_encryption,
enable_simplified_cmk,
enable_software_bill_of_materials,
encryption,
existing_workspaces,
feature_store_settings,
friendly_name,
hbi_workspace,
hub_resource_id,
identity,
image_build_compute,
ip_allowlist,
key_vault,
key_vaults,
kind,
location,
managed_network,
ml_flow_tracking_uri,
notebook_info,
primary_user_assigned_identity,
private_endpoint_connections,
private_link_count,
provisioning_state,
public_network_access,
resourceGroupName,
serverless_compute_settings,
service_managed_resources_settings,
service_provisioned_resource_group,
shared_private_link_resources,
sku,
soft_delete_retention_in_days,
storage_account,
storage_accounts,
storage_hns_enabled,
subscriptionId,
system_data,
system_datastores_auth_mode,
tags,
tenant_id,
type,
v1_legacy_mode,
workspaceName,
workspace_hub_config,
workspace_id
FROM azure.ml_services.vw_workspaces
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a workspaces resource.

/*+ update */
UPDATE azure.ml_services.workspaces
SET
identity = '{{ identity }}',
properties = '{{ properties }}',
sku = '{{ sku }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified workspaces resource.

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