Workspace
Manages a Databricks Workspace
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleWorkspace = new Azure.DataBricks.Workspace("exampleWorkspace", new Azure.DataBricks.WorkspaceArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Sku = "standard",
Tags =
{
{ "Environment", "Production" },
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/databricks"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West US"),
})
if err != nil {
return err
}
_, err = databricks.NewWorkspace(ctx, "exampleWorkspace", &databricks.WorkspaceArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Sku: pulumi.String("standard"),
Tags: pulumi.Map{
"Environment": pulumi.String("Production"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West US")
example_workspace = azure.databricks.Workspace("exampleWorkspace",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
sku="standard",
tags={
"Environment": "Production",
})import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const exampleWorkspace = new azure.databricks.Workspace("exampleWorkspace", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
sku: "standard",
tags: {
Environment: "Production",
},
});Create a Workspace Resource
new Workspace(name: string, args: WorkspaceArgs, opts?: CustomResourceOptions);def Workspace(resource_name, opts=None, custom_parameters=None, location=None, managed_resource_group_name=None, name=None, resource_group_name=None, sku=None, tags=None, __props__=None);func NewWorkspace(ctx *Context, name string, args WorkspaceArgs, opts ...ResourceOption) (*Workspace, error)public Workspace(string name, WorkspaceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Workspace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Workspace resource accepts the following input properties:
- Resource
Group stringName The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
- Sku string
The
skuto use for the Databricks Workspace. Possible values arestandard,premium, ortrial. Changing this forces a new resource to be created.- Custom
Parameters WorkspaceCustom Parameters Args A
custom_parametersblock as documented below.- Location string
Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
- Managed
Resource stringGroup Name The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
- Sku string
The
skuto use for the Databricks Workspace. Possible values arestandard,premium, ortrial. Changing this forces a new resource to be created.- Custom
Parameters WorkspaceCustom Parameters A
custom_parametersblock as documented below.- Location string
Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
- Managed
Resource stringGroup Name The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- resource
Group stringName The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
- sku string
The
skuto use for the Databricks Workspace. Possible values arestandard,premium, ortrial. Changing this forces a new resource to be created.- custom
Parameters WorkspaceCustom Parameters A
custom_parametersblock as documented below.- location string
Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
- managed
Resource stringGroup Name The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
- name string
Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
- sku str
The
skuto use for the Databricks Workspace. Possible values arestandard,premium, ortrial. Changing this forces a new resource to be created.- custom_
parameters Dict[WorkspaceCustom Parameters] A
custom_parametersblock as documented below.- location str
Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
- managed_
resource_ strgroup_ name The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
- name str
Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Workspace resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Resource stringGroup Id The ID of the Managed Resource Group created by the Databricks Workspace.
- Workspace
Id string The unique identifier of the databricks workspace in Databricks control plane.
- Workspace
Url string The workspace URL which is of the format ‘adb-{workspaceId}.{random}.azuredatabricks.net’
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Resource stringGroup Id The ID of the Managed Resource Group created by the Databricks Workspace.
- Workspace
Id string The unique identifier of the databricks workspace in Databricks control plane.
- Workspace
Url string The workspace URL which is of the format ‘adb-{workspaceId}.{random}.azuredatabricks.net’
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Resource stringGroup Id The ID of the Managed Resource Group created by the Databricks Workspace.
- workspace
Id string The unique identifier of the databricks workspace in Databricks control plane.
- workspace
Url string The workspace URL which is of the format ‘adb-{workspaceId}.{random}.azuredatabricks.net’
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
resource_ strgroup_ id The ID of the Managed Resource Group created by the Databricks Workspace.
- workspace_
id str The unique identifier of the databricks workspace in Databricks control plane.
- workspace_
url str The workspace URL which is of the format ‘adb-{workspaceId}.{random}.azuredatabricks.net’
Look up an Existing Workspace Resource
Get an existing Workspace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WorkspaceState, opts?: CustomResourceOptions): Workspacestatic get(resource_name, id, opts=None, custom_parameters=None, location=None, managed_resource_group_id=None, managed_resource_group_name=None, name=None, resource_group_name=None, sku=None, tags=None, workspace_id=None, workspace_url=None, __props__=None);func GetWorkspace(ctx *Context, name string, id IDInput, state *WorkspaceState, opts ...ResourceOption) (*Workspace, error)public static Workspace Get(string name, Input<string> id, WorkspaceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Custom
Parameters WorkspaceCustom Parameters Args A
custom_parametersblock as documented below.- Location string
Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
- Managed
Resource stringGroup Id The ID of the Managed Resource Group created by the Databricks Workspace.
- Managed
Resource stringGroup Name The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
- Sku string
The
skuto use for the Databricks Workspace. Possible values arestandard,premium, ortrial. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Workspace
Id string The unique identifier of the databricks workspace in Databricks control plane.
- Workspace
Url string The workspace URL which is of the format ‘adb-{workspaceId}.{random}.azuredatabricks.net’
- Custom
Parameters WorkspaceCustom Parameters A
custom_parametersblock as documented below.- Location string
Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
- Managed
Resource stringGroup Id The ID of the Managed Resource Group created by the Databricks Workspace.
- Managed
Resource stringGroup Name The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
- Sku string
The
skuto use for the Databricks Workspace. Possible values arestandard,premium, ortrial. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- Workspace
Id string The unique identifier of the databricks workspace in Databricks control plane.
- Workspace
Url string The workspace URL which is of the format ‘adb-{workspaceId}.{random}.azuredatabricks.net’
- custom
Parameters WorkspaceCustom Parameters A
custom_parametersblock as documented below.- location string
Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
- managed
Resource stringGroup Id The ID of the Managed Resource Group created by the Databricks Workspace.
- managed
Resource stringGroup Name The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
- name string
Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
- resource
Group stringName The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
- sku string
The
skuto use for the Databricks Workspace. Possible values arestandard,premium, ortrial. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- workspace
Id string The unique identifier of the databricks workspace in Databricks control plane.
- workspace
Url string The workspace URL which is of the format ‘adb-{workspaceId}.{random}.azuredatabricks.net’
- custom_
parameters Dict[WorkspaceCustom Parameters] A
custom_parametersblock as documented below.- location str
Specifies the supported Azure location where the resource has to be created. Changing this forces a new resource to be created.
- managed_
resource_ strgroup_ id The ID of the Managed Resource Group created by the Databricks Workspace.
- managed_
resource_ strgroup_ name The name of the resource group where Azure should place the managed Databricks resources. Changing this forces a new resource to be created.
- name str
Specifies the name of the Databricks Workspace resource. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the Resource Group in which the Databricks Workspace should exist. Changing this forces a new resource to be created.
- sku str
The
skuto use for the Databricks Workspace. Possible values arestandard,premium, ortrial. Changing this forces a new resource to be created.- Dict[str, str]
A mapping of tags to assign to the resource.
- workspace_
id str The unique identifier of the databricks workspace in Databricks control plane.
- workspace_
url str The workspace URL which is of the format ‘adb-{workspaceId}.{random}.azuredatabricks.net’
Supporting Types
WorkspaceCustomParameters
- No
Public boolIp Are public IP Addresses not allowed?
- Private
Subnet stringName The name of the Private Subnet within the Virtual Network. Required if
virtual_network_idis set.- Public
Subnet stringName The name of the Public Subnet within the Virtual Network. Required if
virtual_network_idis set.- Virtual
Network stringId The ID of a Virtual Network where this Databricks Cluster should be created.
- No
Public boolIp Are public IP Addresses not allowed?
- Private
Subnet stringName The name of the Private Subnet within the Virtual Network. Required if
virtual_network_idis set.- Public
Subnet stringName The name of the Public Subnet within the Virtual Network. Required if
virtual_network_idis set.- Virtual
Network stringId The ID of a Virtual Network where this Databricks Cluster should be created.
- no
Public booleanIp Are public IP Addresses not allowed?
- private
Subnet stringName The name of the Private Subnet within the Virtual Network. Required if
virtual_network_idis set.- public
Subnet stringName The name of the Public Subnet within the Virtual Network. Required if
virtual_network_idis set.- virtual
Network stringId The ID of a Virtual Network where this Databricks Cluster should be created.
- no
Public boolIp Are public IP Addresses not allowed?
- private
Subnet strName The name of the Private Subnet within the Virtual Network. Required if
virtual_network_idis set.- public
Subnet strName The name of the Public Subnet within the Virtual Network. Required if
virtual_network_idis set.- virtual_
network_ strid The ID of a Virtual Network where this Databricks Cluster should be created.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.