Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
bb57759
Databricks - bump API version 2026-01-01
v-yhyeo0202 Feb 3, 2026
d13b15e
`azurerm_databricks_workspace` - add `compliance_security_profile_sta…
v-yhyeo0202 Feb 3, 2026
18c62ff
`azurerm_databricks_workspace` - temporarily hardcode `compute_mode` …
v-yhyeo0202 Feb 3, 2026
6e1353c
Revert unnecessary changes
v-yhyeo0202 Feb 3, 2026
82ddb52
`azurerm_databricks_workspace` - minor fix
v-yhyeo0202 Feb 3, 2026
066b303
`azurerm_databricks_workspace` - minor fix
v-yhyeo0202 Feb 3, 2026
13bd518
Merge branch 'bump-databrick-api-2026-01-01' into add-databricks-work…
v-yhyeo0202 Feb 4, 2026
e178597
Merge branch 'main' into bump-databrick-api-2026-01-01
v-yhyeo0202 Feb 4, 2026
2aef575
Databricks - run `make document-fix`
v-yhyeo0202 Feb 4, 2026
91e8bb6
`azurerm_databricks_virtual_network_peering` - fix documentation
v-yhyeo0202 Feb 5, 2026
662b7b5
Add `azurerm_databricks_serverless_workspace` resource and data source
v-yhyeo0202 Feb 6, 2026
9000032
`azurerm_databricks_serverless_workspace` - add documentations and ru…
v-yhyeo0202 Feb 6, 2026
ab910b9
`azurerm_databricks_serverless_workspace` - fix with `azurerm-linter`
v-yhyeo0202 Feb 6, 2026
fef0993
`azurerm_databricks_serverless_workspace` - fix according to `golangc…
v-yhyeo0202 Feb 6, 2026
26855b1
`azurerm_databricks_serverless_workspaces` - fix managed service rela…
v-yhyeo0202 Feb 6, 2026
fd4dc18
`azurerm_databricks_serverless_workspace` - fix `managed_services_cmk…
v-yhyeo0202 Feb 9, 2026
7796fec
`azurerm_databricks_serverless_workspace` - minor fix
v-yhyeo0202 Feb 9, 2026
84c06b1
Databricks - minor fix
v-yhyeo0202 Feb 9, 2026
d3d3c4d
Databricks - minor fix
v-yhyeo0202 Feb 9, 2026
aa7dccb
`azurerm_databricks_serverless_workspace` - minor fix
v-yhyeo0202 Feb 9, 2026
7d09893
Merge branch 'main' into bump-databrick-api-2026-01-01
v-yhyeo0202 Feb 10, 2026
adeaf16
`azurerm_databricks_serverless_workspace` - minor fix
v-yhyeo0202 Feb 10, 2026
63f1343
Merge branch 'main' into add-databricks-serverless-workspace
v-yhyeo0202 Feb 10, 2026
ba756fb
`azurerm_databricks_workspace_serverless` - fix resource name
v-yhyeo0202 Feb 10, 2026
d692b82
Databricks - bump all Databricks 2022-10-01-preview and 2024-05-01 AP…
v-yhyeo0202 Feb 19, 2026
21e085d
Remove unused entries from `historical-exceptions.yml`
v-yhyeo0202 Feb 19, 2026
8e07972
Merge branch 'main' into bump-databrick-api-2026-01-01
v-yhyeo0202 Feb 19, 2026
798d732
Run `make document-fix`
v-yhyeo0202 Feb 19, 2026
028fcc8
`azurerm_databricks_workspace_serverless` - add acctest for private l…
v-yhyeo0202 Feb 19, 2026
aa84175
Merge branch 'bump-databrick-api-2026-01-01' into add-databricks-serv…
v-yhyeo0202 Feb 19, 2026
ec72fec
`azurerm_databricks_workspace_serverless` - fix `TestAccDatabricksWor…
v-yhyeo0202 Mar 10, 2026
555062b
`azurerm_databricks_workspace_serverless` - add example to create pri…
v-yhyeo0202 Mar 10, 2026
2c13f24
`azurerm_databricks_workspace_serverless` - add example to create pri…
v-yhyeo0202 Mar 10, 2026
3456480
`azurerm_databricks_workspace_serverless` - minor revision
v-yhyeo0202 Mar 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions examples/private-endpoint/databricks/serverless/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Example: Private Endpoint

This example provisions Private Endpoints which connects to a Databricks Serverless Workspace within Azure, adapted from the steps listed in [documentation](https://learn.microsoft.com/en-us/azure/databricks/security/network/front-end/front-end-private-connect).

### Variables

* `prefix` - (Required) The prefix used for all resources in this example.
87 changes: 87 additions & 0 deletions examples/private-endpoint/databricks/serverless/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Copyright IBM Corp. 2014, 2025
# SPDX-License-Identifier: MPL-2.0

provider "azurerm" {
features {}
}

resource "azurerm_resource_group" "example" {
name = "${var.prefix}-rg-dbws"
location = "southeastasia"
}

resource "azurerm_virtual_network" "example" {
name = "${var.prefix}-vnet"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
address_space = ["10.0.0.0/24"]
}

resource "azurerm_subnet" "example" {
name = "${var.prefix}-snet"
resource_group_name = azurerm_resource_group.example.name
virtual_network_name = azurerm_virtual_network.example.name
address_prefixes = ["10.0.0.0/28"]
private_endpoint_network_policies = "Enabled"
}

resource "azurerm_databricks_workspace_serverless" "example" {
name = "${var.prefix}-dbws"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
public_network_access_enabled = false
}

resource "azurerm_private_dns_zone" "example" {
name = "privatelink.azuredatabricks.net"
resource_group_name = azurerm_resource_group.example.name
}

resource "azurerm_private_dns_zone_virtual_network_link" "example" {
name = "${var.prefix}-pdzvnl"
resource_group_name = azurerm_resource_group.example.name
private_dns_zone_name = azurerm_private_dns_zone.example.name
virtual_network_id = azurerm_virtual_network.example.id
}

resource "azurerm_private_endpoint" "example" {
name = "${var.prefix}-pe"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
subnet_id = azurerm_subnet.example.id
custom_network_interface_name = "${var.prefix}-nic"

private_dns_zone_group {
name = "${var.prefix}-pdzg"
private_dns_zone_ids = [azurerm_private_dns_zone.example.id]
}

private_service_connection {
name = "${var.prefix}-psc"
is_manual_connection = false
private_connection_resource_id = azurerm_databricks_workspace_serverless.example.id
subresource_names = ["databricks_ui_api"]
}
}

resource "azurerm_private_endpoint" "example2" {
name = "${var.prefix}-pe2"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
subnet_id = azurerm_subnet.example.id
custom_network_interface_name = "${var.prefix}-nic2"

private_dns_zone_group {
name = "${var.prefix}-pdzg2"
private_dns_zone_ids = [azurerm_private_dns_zone.example.id]
}

private_service_connection {
name = "${var.prefix}-psc2"
is_manual_connection = false
private_connection_resource_id = azurerm_databricks_workspace_serverless.example.id
subresource_names = ["browser_authentication"]
}

depends_on = [azurerm_private_endpoint.example]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright IBM Corp. 2014, 2025
# SPDX-License-Identifier: MPL-2.0

variable "prefix" {
description = "The Prefix used for all resources in this example"
}

6 changes: 3 additions & 3 deletions internal/services/databricks/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package client
import (
"fmt"

"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/accessconnector"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/vnetpeering"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/identity"
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/accessconnector"
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/databricks/validate"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/identity"
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/accessconnector"
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/databricks/validate"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/accessconnector"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/vnetpeering"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/vnetpeering"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/locks"
Expand Down Expand Up @@ -278,6 +278,7 @@ func getProps(workspace workspaces.Workspace, params *workspaces.WorkspaceCustom
Location: workspace.Location,
Sku: workspace.Sku,
Properties: workspaces.WorkspaceProperties{
ComputeMode: workspace.Properties.ComputeMode,
PublicNetworkAccess: workspace.Properties.PublicNetworkAccess,
ManagedResourceGroupId: workspace.Properties.ManagedResourceGroupId,
Parameters: params,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
Expand Down
26 changes: 12 additions & 14 deletions internal/services/databricks/databricks_workspace_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/accessconnector"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
mlworkspace "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2025-06-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers"
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2025-01-01/subnets"
Expand Down Expand Up @@ -357,11 +357,8 @@ func resourceDatabricksWorkspace() *pluginsdk.Resource {
Type: pluginsdk.TypeSet,
Optional: true,
Elem: &pluginsdk.Schema{
Type: pluginsdk.TypeString,
ValidateFunc: validation.StringInSlice([]string{
string(workspaces.ComplianceStandardHIPAA),
string(workspaces.ComplianceStandardPCIDSS),
}, false),
Type: pluginsdk.TypeString,
ValidateFunc: validation.StringInSlice(validate.PossibleValuesForComplianceStandard(), false),
},
},
"enhanced_security_monitoring_enabled": {
Expand Down Expand Up @@ -672,8 +669,9 @@ func resourceDatabricksWorkspaceCreate(d *pluginsdk.ResourceData, meta interface
},
Location: location,
Properties: workspaces.WorkspaceProperties{
ComputeMode: workspaces.ComputeModeHybrid,
PublicNetworkAccess: &publicNetworkAccess,
ManagedResourceGroupId: managedResourceGroupID,
ManagedResourceGroupId: pointer.To(managedResourceGroupID),
Parameters: customParams,
},
Tags: tags.Expand(d.Get("tags").(map[string]interface{})),
Expand Down Expand Up @@ -799,7 +797,7 @@ func resourceDatabricksWorkspaceRead(d *pluginsdk.ResourceData, meta interface{}
d.Set("sku", sku.Name)
}

managedResourceGroupID, err := resourcesParse.ResourceGroupIDInsensitively(model.Properties.ManagedResourceGroupId)
managedResourceGroupID, err := resourcesParse.ResourceGroupIDInsensitively(pointer.From(model.Properties.ManagedResourceGroupId))
if err != nil {
return err
}
Expand Down Expand Up @@ -1506,10 +1504,10 @@ func flattenWorkspaceEnhancedSecurity(input *workspaces.EnhancedSecurityComplian

standards := pluginsdk.NewSet(pluginsdk.HashString, nil)
for _, s := range pointer.From(v.ComplianceStandards) {
if s == workspaces.ComplianceStandardNONE {
if s == string(validate.ComplianceStandardNONE) {
continue
}
standards.Add(string(s))
standards.Add(s)
}

enhancedSecurityCompliance["compliance_security_profile_standards"] = standards
Expand Down Expand Up @@ -1540,15 +1538,15 @@ func expandWorkspaceEnhancedSecurity(input []interface{}) *workspaces.EnhancedSe
complianceSecurityProfileEnabled = workspaces.ComplianceSecurityProfileValueEnabled
}

complianceStandards := []workspaces.ComplianceStandard{}
complianceStandards := make([]string, 0)
if standardSet, ok := config["compliance_security_profile_standards"].(*pluginsdk.Set); ok {
for _, s := range standardSet.List() {
complianceStandards = append(complianceStandards, workspaces.ComplianceStandard(s.(string)))
complianceStandards = append(complianceStandards, s.(string))
}
}

if complianceSecurityProfileEnabled == workspaces.ComplianceSecurityProfileValueEnabled && len(complianceStandards) == 0 {
complianceStandards = append(complianceStandards, workspaces.ComplianceStandardNONE)
complianceStandards = append(complianceStandards, string(validate.ComplianceStandardNONE))
}

return &workspaces.EnhancedSecurityComplianceDefinition{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"

"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
"github.com/hashicorp/go-azure-helpers/resourcemanager/keyvault"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-provider-azurerm/helpers/tf"
"github.com/hashicorp/terraform-provider-azurerm/internal/clients"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/hashicorp/go-azure-helpers/lang/pointer"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2026-01-01/workspaces"
"github.com/hashicorp/go-uuid"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check"
Expand Down
Loading