terraform-databricks-examples icon indicating copy to clipboard operation
terraform-databricks-examples copied to clipboard

Failed to run adb-with-private-link-standard

Open asagarshinde opened this issue 11 months ago • 2 comments

I tried multiple times and getting below error.

│ ----[start]---- │ {"status":"Failed","error":{"code":"ConcurrentUpdateError","message":"Call to Microsoft.Databricks/workspaces failed. Error message: Workspace update could not be completed because it has been updated by another process.","details":[]}}

asagarshinde avatar Feb 18 '25 14:02 asagarshinde

I'm having the exact same issue. To reproduce, copy the adb-with-private-link-standard and run terraform apply on an Azure backend.

macdrai avatar Feb 26 '25 14:02 macdrai

I had the same problem, the conflict seems to be coming from the backend and frontend endpoints. I forced a dependency on the backend with depend_on to avoid this:

resource "azurerm_private_endpoint" "dp_dpcp" {
  name                = "dpcppvtendpoint-dp"
  location            = azurerm_resource_group.dp_rg.location
  resource_group_name = azurerm_resource_group.dp_rg.name
  subnet_id           = azurerm_subnet.dp_plsubnet.id

  private_service_connection {
    name                           = "ple-${local.prefix}-dp-dpcp"
    private_connection_resource_id = azurerm_databricks_workspace.dp_workspace.id
    is_manual_connection           = false
    subresource_names              = ["databricks_ui_api"]
  }

  private_dns_zone_group {
    name                 = "dp-private-dns-zone-dpcp"
    private_dns_zone_ids = [azurerm_private_dns_zone.dnsdpcp.id]
  }
depends_on = [ azurerm_private_endpoint.front_pe, azurerm_private_endpoint.dp_dbfspe_blob, azurerm_private_endpoint.dp_dbfspe_dfs, azurerm_private_endpoint.transit_auth ]
  }

Trifa01 avatar Mar 17 '25 13:03 Trifa01