Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.synapse.workspaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
identityobjectIdentity of the workspace
locationstringThe geo-location where the resource lives
propertiesobjectWorkspace resource properties
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workspaceNameGets a workspace
list_by_resource_groupselectsubscriptionId, resourceGroupNameReturns a list of workspaces in a resource group
listselectsubscriptionIdReturns a list of workspaces in a subscription
create_or_updateinsertsubscriptionId, resourceGroupName, workspaceNameCreates or updates a workspace
updateupdatesubscriptionId, resourceGroupName, workspaceNameUpdates a workspace
deletedeletesubscriptionId, resourceGroupName, workspaceNameDeletes a workspace

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.

SELECT examples

Gets a workspace

SELECT
identity,
location,
properties,
tags
FROM azure.synapse.workspaces
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
;

INSERT examples

Creates or updates a workspace

INSERT INTO azure.synapse.workspaces (
data__tags,
data__location,
data__properties,
data__identity,
subscriptionId,
resourceGroupName,
workspaceName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ workspaceName }}'
RETURNING
identity,
location,
properties,
tags
;

UPDATE examples

Updates a workspace

UPDATE azure.synapse.workspaces
SET
data__tags = '{{ tags }}',
data__identity = '{{ identity }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
RETURNING
identity,
location,
properties,
tags;

DELETE examples

Deletes a workspace

DELETE FROM azure.synapse.workspaces
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
;