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
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
adlaResourceIdstringThe ADLA resource ID.
azureADOnlyAuthenticationbooleanEnable or Disable AzureADOnlyAuthentication on All Workspace subresource.
connectivityEndpointsobjectConnectivity endpoints.
cspWorkspaceAdminPropertiesobjectInitial workspace AAD admin properties for a CSP subscription.
defaultDataLakeStorageobjectWorkspace default data lake storage account details.
encryptionobjectThe encryption details of the workspace.
extraPropertiesobjectWorkspace level configs and feature flags.
identityobjectIdentity of the workspace.
locationstringThe geo-location where the resource lives. Required.
managedResourceGroupNamestringWorkspace managed resource group. The resource group name uniquely identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.'.
managedVirtualNetworkstringSetting this to 'default' will ensure that all compute for this workspace is in a virtual network managed on behalf of the user.
managedVirtualNetworkSettingsobjectManaged Virtual Network Settings.
privateEndpointConnectionsarrayPrivate endpoint connections to the workspace.
provisioningStatestringResource provisioning state.
publicNetworkAccessstringEnable or Disable public network access to workspace. Known values are: "Enabled" and "Disabled".
purviewConfigurationobjectPurview Configuration.
settingsobjectWorkspace settings.
sqlAdministratorLoginstringLogin for workspace SQL active directory administrator.
sqlAdministratorLoginPasswordstringSQL administrator login password.
tagsobjectResource tags.
trustedServiceBypassEnabledbooleanIs trustedServiceBypassEnabled for the workspace.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
virtualNetworkProfileobjectVirtual Network profile.
workspaceRepositoryConfigurationobjectGit integration settings.
workspaceUIDstringThe workspace unique identifier.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, subscription_idGets a workspace.
list_by_resource_groupselectresource_group_name, subscription_idReturns a list of workspaces in a resource group.
listselectsubscription_idReturns a list of workspaces in a subscription.
create_or_updateinsertresource_group_name, workspace_name, subscription_id, locationCreates or updates a workspace.
updateupdateresource_group_name, workspace_name, subscription_idUpdates a workspace.
create_or_updatereplaceresource_group_name, workspace_name, subscription_id, locationCreates or updates a workspace.
deletedeleteresource_group_name, workspace_name, subscription_idDeletes 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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Gets a workspace.

SELECT
id,
name,
adlaResourceId,
azureADOnlyAuthentication,
connectivityEndpoints,
cspWorkspaceAdminProperties,
defaultDataLakeStorage,
encryption,
extraProperties,
identity,
location,
managedResourceGroupName,
managedVirtualNetwork,
managedVirtualNetworkSettings,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
purviewConfiguration,
settings,
sqlAdministratorLogin,
sqlAdministratorLoginPassword,
tags,
trustedServiceBypassEnabled,
type,
virtualNetworkProfile,
workspaceRepositoryConfiguration,
workspaceUID
FROM azure.synapse.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.

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

UPDATE examples

Updates a workspace.

UPDATE azure.synapse.workspaces
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
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,
tags,
type;

REPLACE examples

Creates or updates a workspace.

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

DELETE examples

Deletes a workspace.

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