Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.synapse.workspaces

Fields

NameDatatypeDescription
adla_resource_idtextfield from the properties object
azure_ad_only_authenticationtextfield from the properties object
connectivity_endpointstextfield from the properties object
csp_workspace_admin_propertiestextfield from the properties object
default_data_lake_storagetextfield from the properties object
encryptiontextfield from the properties object
extra_propertiestextfield from the properties object
identitytextThe workspace managed identity
locationtextThe geo-location where the resource lives
managed_resource_group_nametextfield from the properties object
managed_virtual_networktextfield from the properties object
managed_virtual_network_settingstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
purview_configurationtextfield from the properties object
resourceGroupNametextfield from the properties object
settingstextfield from the properties object
sql_administrator_logintextfield from the properties object
sql_administrator_login_passwordtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
trusted_service_bypass_enabledtextfield from the properties object
virtual_network_profiletextfield from the properties object
workspaceNametextfield from the properties object
workspace_repository_configurationtextfield from the properties object
workspace_uidtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workspaceNameGets a workspace
listSELECTsubscriptionIdReturns a list of workspaces in a subscription
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns a list of workspaces in a resource group
create_or_updateINSERTresourceGroupName, subscriptionId, workspaceNameCreates or updates a workspace
deleteDELETEresourceGroupName, subscriptionId, workspaceNameDeletes a workspace
updateUPDATEresourceGroupName, subscriptionId, workspaceNameUpdates a workspace

SELECT examples

Returns a list of workspaces in a subscription

SELECT
adla_resource_id,
azure_ad_only_authentication,
connectivity_endpoints,
csp_workspace_admin_properties,
default_data_lake_storage,
encryption,
extra_properties,
identity,
location,
managed_resource_group_name,
managed_virtual_network,
managed_virtual_network_settings,
private_endpoint_connections,
provisioning_state,
public_network_access,
purview_configuration,
resourceGroupName,
settings,
sql_administrator_login,
sql_administrator_login_password,
subscriptionId,
tags,
trusted_service_bypass_enabled,
virtual_network_profile,
workspaceName,
workspace_repository_configuration,
workspace_uid
FROM azure.synapse.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.synapse.workspaces (
resourceGroupName,
subscriptionId,
workspaceName,
tags,
location,
properties,
identity
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a workspaces resource.

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

DELETE example

Deletes the specified workspaces resource.

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