We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.databricks.getWorkspace
Use this data source to access information about an existing Databricks workspace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.databricks.getWorkspace({
name: "example-workspace",
resourceGroupName: "example-rg",
});
export const databricksWorkspaceId = example.then(example => example.workspaceId);
import pulumi
import pulumi_azure as azure
example = azure.databricks.get_workspace(name="example-workspace",
resource_group_name="example-rg")
pulumi.export("databricksWorkspaceId", example.workspace_id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := databricks.LookupWorkspace(ctx, &databricks.LookupWorkspaceArgs{
Name: "example-workspace",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("databricksWorkspaceId", example.WorkspaceId)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.DataBricks.GetWorkspace.Invoke(new()
{
Name = "example-workspace",
ResourceGroupName = "example-rg",
});
return new Dictionary<string, object?>
{
["databricksWorkspaceId"] = example.Apply(getWorkspaceResult => getWorkspaceResult.WorkspaceId),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.databricks.DatabricksFunctions;
import com.pulumi.azure.databricks.inputs.GetWorkspaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = DatabricksFunctions.getWorkspace(GetWorkspaceArgs.builder()
.name("example-workspace")
.resourceGroupName("example-rg")
.build());
ctx.export("databricksWorkspaceId", example.workspaceId());
}
}
variables:
example:
fn::invoke:
function: azure:databricks:getWorkspace
arguments:
name: example-workspace
resourceGroupName: example-rg
outputs:
databricksWorkspaceId: ${example.workspaceId}
API Providers
This data source uses the following Azure API Providers:
Microsoft.Databricks- 2024-05-01
Using getWorkspace
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWorkspace(args: GetWorkspaceArgs, opts?: InvokeOptions): Promise<GetWorkspaceResult>
function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?: InvokeOptions): Output<GetWorkspaceResult>def get_workspace(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkspaceResult
def get_workspace_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceResult]func LookupWorkspace(ctx *Context, args *LookupWorkspaceArgs, opts ...InvokeOption) (*LookupWorkspaceResult, error)
func LookupWorkspaceOutput(ctx *Context, args *LookupWorkspaceOutputArgs, opts ...InvokeOption) LookupWorkspaceResultOutput> Note: This function is named LookupWorkspace in the Go SDK.
public static class GetWorkspace
{
public static Task<GetWorkspaceResult> InvokeAsync(GetWorkspaceArgs args, InvokeOptions? opts = null)
public static Output<GetWorkspaceResult> Invoke(GetWorkspaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkspaceResult> getWorkspace(GetWorkspaceArgs args, InvokeOptions options)
public static Output<GetWorkspaceResult> getWorkspace(GetWorkspaceArgs args, InvokeOptions options)
fn::invoke:
function: azure:databricks/getWorkspace:getWorkspace
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the Databricks Workspace.
- Resource
Group stringName - The Name of the Resource Group where the Databricks Workspace exists.
- Dictionary<string, string>
- A mapping of tags to assign to the Databricks Workspace.
- Name string
- The name of the Databricks Workspace.
- Resource
Group stringName - The Name of the Resource Group where the Databricks Workspace exists.
- map[string]string
- A mapping of tags to assign to the Databricks Workspace.
- name String
- The name of the Databricks Workspace.
- resource
Group StringName - The Name of the Resource Group where the Databricks Workspace exists.
- Map<String,String>
- A mapping of tags to assign to the Databricks Workspace.
- name string
- The name of the Databricks Workspace.
- resource
Group stringName - The Name of the Resource Group where the Databricks Workspace exists.
- {[key: string]: string}
- A mapping of tags to assign to the Databricks Workspace.
- name str
- The name of the Databricks Workspace.
- resource_
group_ strname - The Name of the Resource Group where the Databricks Workspace exists.
- Mapping[str, str]
- A mapping of tags to assign to the Databricks Workspace.
- name String
- The name of the Databricks Workspace.
- resource
Group StringName - The Name of the Resource Group where the Databricks Workspace exists.
- Map<String>
- A mapping of tags to assign to the Databricks Workspace.
getWorkspace Result
The following output properties are available:
- Custom
Parameters List<GetWorkspace Custom Parameter> - A
custom_parametersblock as documented below. * - Enhanced
Security List<GetCompliances Workspace Enhanced Security Compliance> - An
enhanced_security_complianceblock as documented below. - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure location where the Databricks Workspace exists.
- Managed
Disk List<GetIdentities Workspace Managed Disk Identity> - A
managed_disk_identityblock as documented below. - Name string
- Resource
Group stringName - Sku string
- SKU of this Databricks Workspace.
- Storage
Account List<GetIdentities Workspace Storage Account Identity> - A
storage_account_identityblock as documented below. - Workspace
Id string - Unique ID of this Databricks Workspace in Databricks management plane.
- Workspace
Url string - URL this Databricks Workspace is accessible on.
- Dictionary<string, string>
- A mapping of tags to assign to the Databricks Workspace.
- Custom
Parameters []GetWorkspace Custom Parameter - A
custom_parametersblock as documented below. * - Enhanced
Security []GetCompliances Workspace Enhanced Security Compliance - An
enhanced_security_complianceblock as documented below. - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure location where the Databricks Workspace exists.
- Managed
Disk []GetIdentities Workspace Managed Disk Identity - A
managed_disk_identityblock as documented below. - Name string
- Resource
Group stringName - Sku string
- SKU of this Databricks Workspace.
- Storage
Account []GetIdentities Workspace Storage Account Identity - A
storage_account_identityblock as documented below. - Workspace
Id string - Unique ID of this Databricks Workspace in Databricks management plane.
- Workspace
Url string - URL this Databricks Workspace is accessible on.
- map[string]string
- A mapping of tags to assign to the Databricks Workspace.
- custom
Parameters List<GetWorkspace Custom Parameter> - A
custom_parametersblock as documented below. * - enhanced
Security List<GetCompliances Workspace Enhanced Security Compliance> - An
enhanced_security_complianceblock as documented below. - id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure location where the Databricks Workspace exists.
- managed
Disk List<GetIdentities Workspace Managed Disk Identity> - A
managed_disk_identityblock as documented below. - name String
- resource
Group StringName - sku String
- SKU of this Databricks Workspace.
- storage
Account List<GetIdentities Workspace Storage Account Identity> - A
storage_account_identityblock as documented below. - workspace
Id String - Unique ID of this Databricks Workspace in Databricks management plane.
- workspace
Url String - URL this Databricks Workspace is accessible on.
- Map<String,String>
- A mapping of tags to assign to the Databricks Workspace.
- custom
Parameters GetWorkspace Custom Parameter[] - A
custom_parametersblock as documented below. * - enhanced
Security GetCompliances Workspace Enhanced Security Compliance[] - An
enhanced_security_complianceblock as documented below. - id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure location where the Databricks Workspace exists.
- managed
Disk GetIdentities Workspace Managed Disk Identity[] - A
managed_disk_identityblock as documented below. - name string
- resource
Group stringName - sku string
- SKU of this Databricks Workspace.
- storage
Account GetIdentities Workspace Storage Account Identity[] - A
storage_account_identityblock as documented below. - workspace
Id string - Unique ID of this Databricks Workspace in Databricks management plane.
- workspace
Url string - URL this Databricks Workspace is accessible on.
- {[key: string]: string}
- A mapping of tags to assign to the Databricks Workspace.
- custom_
parameters Sequence[GetWorkspace Custom Parameter] - A
custom_parametersblock as documented below. * - enhanced_
security_ Sequence[Getcompliances Workspace Enhanced Security Compliance] - An
enhanced_security_complianceblock as documented below. - id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure location where the Databricks Workspace exists.
- managed_
disk_ Sequence[Getidentities Workspace Managed Disk Identity] - A
managed_disk_identityblock as documented below. - name str
- resource_
group_ strname - sku str
- SKU of this Databricks Workspace.
- storage_
account_ Sequence[Getidentities Workspace Storage Account Identity] - A
storage_account_identityblock as documented below. - workspace_
id str - Unique ID of this Databricks Workspace in Databricks management plane.
- workspace_
url str - URL this Databricks Workspace is accessible on.
- Mapping[str, str]
- A mapping of tags to assign to the Databricks Workspace.
- custom
Parameters List<Property Map> - A
custom_parametersblock as documented below. * - enhanced
Security List<Property Map>Compliances - An
enhanced_security_complianceblock as documented below. - id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure location where the Databricks Workspace exists.
- managed
Disk List<Property Map>Identities - A
managed_disk_identityblock as documented below. - name String
- resource
Group StringName - sku String
- SKU of this Databricks Workspace.
- storage
Account List<Property Map>Identities - A
storage_account_identityblock as documented below. - workspace
Id String - Unique ID of this Databricks Workspace in Databricks management plane.
- workspace
Url String - URL this Databricks Workspace is accessible on.
- Map<String>
- A mapping of tags to assign to the Databricks Workspace.
Supporting Types
GetWorkspaceCustomParameter
- Machine
Learning stringWorkspace Id - The ID of a Azure Machine Learning workspace to link with Databricks workspace.
- Nat
Gateway stringName - Name of the NAT gateway for Secure Cluster Connectivity (No Public IP) workspace subnets (only for workspace with managed virtual network).
- No
Public boolIp - Are public IP Addresses not allowed?
- Private
Subnet stringName - The name of the Private Subnet within the Virtual Network.
- Public
Ip stringName - Name of the Public IP for No Public IP workspace with managed virtual network.
- Public
Subnet stringName - The name of the Public Subnet within the Virtual Network.
- Storage
Account stringName - Default Databricks File Storage account name.
- Storage
Account stringSku Name - Storage account SKU name.
- Virtual
Network stringId - The ID of a Virtual Network where this Databricks Cluster should be created.
- Vnet
Address stringPrefix - Address prefix for Managed virtual network.
- Machine
Learning stringWorkspace Id - The ID of a Azure Machine Learning workspace to link with Databricks workspace.
- Nat
Gateway stringName - Name of the NAT gateway for Secure Cluster Connectivity (No Public IP) workspace subnets (only for workspace with managed virtual network).
- No
Public boolIp - Are public IP Addresses not allowed?
- Private
Subnet stringName - The name of the Private Subnet within the Virtual Network.
- Public
Ip stringName - Name of the Public IP for No Public IP workspace with managed virtual network.
- Public
Subnet stringName - The name of the Public Subnet within the Virtual Network.
- Storage
Account stringName - Default Databricks File Storage account name.
- Storage
Account stringSku Name - Storage account SKU name.
- Virtual
Network stringId - The ID of a Virtual Network where this Databricks Cluster should be created.
- Vnet
Address stringPrefix - Address prefix for Managed virtual network.
- machine
Learning StringWorkspace Id - The ID of a Azure Machine Learning workspace to link with Databricks workspace.
- nat
Gateway StringName - Name of the NAT gateway for Secure Cluster Connectivity (No Public IP) workspace subnets (only for workspace with managed virtual network).
- no
Public BooleanIp - Are public IP Addresses not allowed?
- private
Subnet StringName - The name of the Private Subnet within the Virtual Network.
- public
Ip StringName - Name of the Public IP for No Public IP workspace with managed virtual network.
- public
Subnet StringName - The name of the Public Subnet within the Virtual Network.
- storage
Account StringName - Default Databricks File Storage account name.
- storage
Account StringSku Name - Storage account SKU name.
- virtual
Network StringId - The ID of a Virtual Network where this Databricks Cluster should be created.
- vnet
Address StringPrefix - Address prefix for Managed virtual network.
- machine
Learning stringWorkspace Id - The ID of a Azure Machine Learning workspace to link with Databricks workspace.
- nat
Gateway stringName - Name of the NAT gateway for Secure Cluster Connectivity (No Public IP) workspace subnets (only for workspace with managed virtual network).
- no
Public booleanIp - Are public IP Addresses not allowed?
- private
Subnet stringName - The name of the Private Subnet within the Virtual Network.
- public
Ip stringName - Name of the Public IP for No Public IP workspace with managed virtual network.
- public
Subnet stringName - The name of the Public Subnet within the Virtual Network.
- storage
Account stringName - Default Databricks File Storage account name.
- storage
Account stringSku Name - Storage account SKU name.
- virtual
Network stringId - The ID of a Virtual Network where this Databricks Cluster should be created.
- vnet
Address stringPrefix - Address prefix for Managed virtual network.
- machine_
learning_ strworkspace_ id - The ID of a Azure Machine Learning workspace to link with Databricks workspace.
- nat_
gateway_ strname - Name of the NAT gateway for Secure Cluster Connectivity (No Public IP) workspace subnets (only for workspace with managed virtual network).
- no_
public_ boolip - Are public IP Addresses not allowed?
- private_
subnet_ strname - The name of the Private Subnet within the Virtual Network.
- public_
ip_ strname - Name of the Public IP for No Public IP workspace with managed virtual network.
- public_
subnet_ strname - The name of the Public Subnet within the Virtual Network.
- storage_
account_ strname - Default Databricks File Storage account name.
- storage_
account_ strsku_ name - Storage account SKU name.
- virtual_
network_ strid - The ID of a Virtual Network where this Databricks Cluster should be created.
- vnet_
address_ strprefix - Address prefix for Managed virtual network.
- machine
Learning StringWorkspace Id - The ID of a Azure Machine Learning workspace to link with Databricks workspace.
- nat
Gateway StringName - Name of the NAT gateway for Secure Cluster Connectivity (No Public IP) workspace subnets (only for workspace with managed virtual network).
- no
Public BooleanIp - Are public IP Addresses not allowed?
- private
Subnet StringName - The name of the Private Subnet within the Virtual Network.
- public
Ip StringName - Name of the Public IP for No Public IP workspace with managed virtual network.
- public
Subnet StringName - The name of the Public Subnet within the Virtual Network.
- storage
Account StringName - Default Databricks File Storage account name.
- storage
Account StringSku Name - Storage account SKU name.
- virtual
Network StringId - The ID of a Virtual Network where this Databricks Cluster should be created.
- vnet
Address StringPrefix - Address prefix for Managed virtual network.
GetWorkspaceEnhancedSecurityCompliance
- Automatic
Cluster boolUpdate Enabled - Whether automatic cluster updates for this workspace is enabled.
- Compliance
Security boolProfile Enabled - Whether compliance security profile for this workspace is enabled.
- Compliance
Security List<string>Profile Standards - A list of standards enforced on this workspace.
- Enhanced
Security boolMonitoring Enabled - Whether enhanced security monitoring for this workspace is enabled.
- Automatic
Cluster boolUpdate Enabled - Whether automatic cluster updates for this workspace is enabled.
- Compliance
Security boolProfile Enabled - Whether compliance security profile for this workspace is enabled.
- Compliance
Security []stringProfile Standards - A list of standards enforced on this workspace.
- Enhanced
Security boolMonitoring Enabled - Whether enhanced security monitoring for this workspace is enabled.
- automatic
Cluster BooleanUpdate Enabled - Whether automatic cluster updates for this workspace is enabled.
- compliance
Security BooleanProfile Enabled - Whether compliance security profile for this workspace is enabled.
- compliance
Security List<String>Profile Standards - A list of standards enforced on this workspace.
- enhanced
Security BooleanMonitoring Enabled - Whether enhanced security monitoring for this workspace is enabled.
- automatic
Cluster booleanUpdate Enabled - Whether automatic cluster updates for this workspace is enabled.
- compliance
Security booleanProfile Enabled - Whether compliance security profile for this workspace is enabled.
- compliance
Security string[]Profile Standards - A list of standards enforced on this workspace.
- enhanced
Security booleanMonitoring Enabled - Whether enhanced security monitoring for this workspace is enabled.
- automatic_
cluster_ boolupdate_ enabled - Whether automatic cluster updates for this workspace is enabled.
- compliance_
security_ boolprofile_ enabled - Whether compliance security profile for this workspace is enabled.
- compliance_
security_ Sequence[str]profile_ standards - A list of standards enforced on this workspace.
- enhanced_
security_ boolmonitoring_ enabled - Whether enhanced security monitoring for this workspace is enabled.
- automatic
Cluster BooleanUpdate Enabled - Whether automatic cluster updates for this workspace is enabled.
- compliance
Security BooleanProfile Enabled - Whether compliance security profile for this workspace is enabled.
- compliance
Security List<String>Profile Standards - A list of standards enforced on this workspace.
- enhanced
Security BooleanMonitoring Enabled - Whether enhanced security monitoring for this workspace is enabled.
GetWorkspaceManagedDiskIdentity
- Principal
Id string - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- Tenant
Id string - The UUID of the tenant where the internal databricks storage account was created.
- Type string
- The type of the internal databricks storage account.
- Principal
Id string - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- Tenant
Id string - The UUID of the tenant where the internal databricks storage account was created.
- Type string
- The type of the internal databricks storage account.
- principal
Id String - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- tenant
Id String - The UUID of the tenant where the internal databricks storage account was created.
- type String
- The type of the internal databricks storage account.
- principal
Id string - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- tenant
Id string - The UUID of the tenant where the internal databricks storage account was created.
- type string
- The type of the internal databricks storage account.
- principal_
id str - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- tenant_
id str - The UUID of the tenant where the internal databricks storage account was created.
- type str
- The type of the internal databricks storage account.
- principal
Id String - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- tenant
Id String - The UUID of the tenant where the internal databricks storage account was created.
- type String
- The type of the internal databricks storage account.
GetWorkspaceStorageAccountIdentity
- Principal
Id string - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- Tenant
Id string - The UUID of the tenant where the internal databricks storage account was created.
- Type string
- The type of the internal databricks storage account.
- Principal
Id string - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- Tenant
Id string - The UUID of the tenant where the internal databricks storage account was created.
- Type string
- The type of the internal databricks storage account.
- principal
Id String - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- tenant
Id String - The UUID of the tenant where the internal databricks storage account was created.
- type String
- The type of the internal databricks storage account.
- principal
Id string - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- tenant
Id string - The UUID of the tenant where the internal databricks storage account was created.
- type string
- The type of the internal databricks storage account.
- principal_
id str - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- tenant_
id str - The UUID of the tenant where the internal databricks storage account was created.
- type str
- The type of the internal databricks storage account.
- principal
Id String - The principal UUID for the internal databricks storage account needed to provide access to the workspace for enabling Customer Managed Keys.
- tenant
Id String - The UUID of the tenant where the internal databricks storage account was created.
- type String
- The type of the internal databricks storage account.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
