Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure_isv.databricks.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.
accessConnectorobjectAccess Connector Resource that is going to be associated with Databricks Workspace. Not allowed in Serverless ComputeMode workspace.
authorizationsarrayThe workspace provider authorizations.
computeModestringThe workspace compute mode. Required on create, cannot be changed. Possible values include: 'Serverless', 'Hybrid'. Required. Known values are: "Serverless" and "Hybrid". (Serverless, Hybrid)
createdByobjectIndicates the Object ID, PUID and Application ID of entity that created the workspace.
createdDateTimestring (date-time)Specifies the date and time when the workspace is created.
defaultCatalogobjectProperties for Default Catalog configuration during workspace creation. Not allowed in Serverless ComputeMode workspace.
defaultStorageFirewallstringGets or Sets Default Storage Firewall configuration information. Not allowed in Serverless ComputeMode workspace. Known values are: "Disabled" and "Enabled". (Disabled, Enabled)
diskEncryptionSetIdstringThe resource Id of the managed disk encryption set. Not allowed in Serverless ComputeMode workspace.
encryptionobjectEncryption properties for databricks workspace. Supported in both Serverless and Hybrid ComputeMode workspace.
enhancedSecurityComplianceobjectContains settings related to the Enhanced Security and Compliance Add-On. Supported in both Serverless and Hybrid ComputeMode workspace.
isUcEnabledbooleanIndicates whether unity catalog enabled for the workspace or not. Set as true in Serverless ComputeMode workspace.
locationstringThe geo-location where the resource lives. Required.
managedDiskIdentityobjectThe details of Managed Identity of Disk Encryption Set used for Managed Disk Encryption. Only returned in Hybrid ComputeMode workspace.
managedResourceGroupIdstringThe managed resource group Id. Required in Hybrid ComputeMode workspace. Not allowed in Serverless ComputeMode workspace.
parametersobjectThe workspace's custom parameters.
privateEndpointConnectionsarrayPrivate endpoint connections created on the workspace. Supported in both Serverless and Hybrid ComputeMode workspace.
provisioningStatestringThe workspace provisioning state. Known values are: "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", and "Updating". (Accepted, Running, Ready, Creating, Created, Deleting, Deleted, Canceled, Failed, Succeeded, Updating)
publicNetworkAccessstringThe network access type for accessing workspace. Set value to disabled to access workspace only via private link. Used to configure front-end only private link for Serverless ComputeMode workspace. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
requiredNsgRulesstringGets or sets a value indicating whether data plane (clusters) to control plane communication happen over private endpoint. Supported values are 'AllRules' and 'NoAzureDatabricksRules'. 'NoAzureServiceRules' value is for internal use only. Not allowed in Serverless ComputeMode workspace. Known values are: "AllRules", "NoAzureDatabricksRules", and "NoAzureServiceRules". (AllRules, NoAzureDatabricksRules, NoAzureServiceRules)
skuobjectThe SKU of the resource.
storageAccountIdentityobjectThe details of Managed Identity of Storage Account. Only returned in Hybrid ComputeMode workspace.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
uiDefinitionUristringThe blob URI where the UI definition file is located.
updatedByobjectIndicates the Object ID, PUID and Application ID of entity that last updated the workspace.
workspaceIdstringThe unique identifier of the databricks workspace in databricks control plane.
workspaceUrlstringThe workspace URL which is of the format 'adb-{workspaceId}.{random}.azuredatabricks.net'.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, subscription_idGets the workspace.
list_by_resource_groupselectresource_group_name, subscription_idGets all the workspaces within a resource group.
list_by_subscriptionselectsubscription_idGets all the workspaces within a subscription.
create_or_updateinsertresource_group_name, workspace_name, subscription_id, location, propertiesCreates a new workspace.
updateupdateresource_group_name, workspace_name, subscription_idUpdates a workspace.
create_or_updatereplaceresource_group_name, workspace_name, subscription_id, location, propertiesCreates a new workspace.
deletedeleteresource_group_name, workspace_name, subscription_idforceDeletionDeletes the 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.
forceDeletionbooleanOptional parameter to retain default unity catalog data. By default the data will retained if Uc is enabled on the workspace. Default value is False.

SELECT examples

Gets the workspace.

SELECT
id,
name,
accessConnector,
authorizations,
computeMode,
createdBy,
createdDateTime,
defaultCatalog,
defaultStorageFirewall,
diskEncryptionSetId,
encryption,
enhancedSecurityCompliance,
isUcEnabled,
location,
managedDiskIdentity,
managedResourceGroupId,
parameters,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
requiredNsgRules,
sku,
storageAccountIdentity,
systemData,
tags,
type,
uiDefinitionUri,
updatedBy,
workspaceId,
workspaceUrl
FROM azure_isv.databricks.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new workspace.

INSERT INTO azure_isv.databricks.workspaces (
tags,
location,
properties,
sku,
resource_group_name,
workspace_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ sku }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Updates a workspace.

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

REPLACE examples

Creates a new workspace.

REPLACE azure_isv.databricks.workspaces
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes the workspace.

DELETE FROM azure_isv.databricks.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND forceDeletion = '{{ forceDeletion }}'
;