We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to access information about an existing Databricks workspace.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.DataBricks.GetWorkspace.InvokeAsync(new Azure.DataBricks.GetWorkspaceArgs
{
Name = "example-workspace",
ResourceGroupName = "example-rg",
}));
this.DatabricksWorkspaceId = example.Apply(example => example.WorkspaceId);
}
[Output("databricksWorkspaceId")]
public Output<string> DatabricksWorkspaceId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/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
})
}
Example coming soon!
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)
Example coming soon!
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:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource
Group stringName - Sku string
- SKU of this Databricks Workspace.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource
Group stringName - Sku string
- SKU of this Databricks Workspace.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- resource
Group StringName - sku String
- SKU of this Databricks Workspace.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- resource
Group stringName - sku string
- SKU of this Databricks Workspace.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- resource_
group_ strname - sku str
- SKU of this Databricks Workspace.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- resource
Group StringName - sku String
- SKU of this Databricks Workspace.
- 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.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
