<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deply databricks workspace on azure with terraform - failed state: legacy access in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133417#M4132</link>
    <description>&lt;P&gt;I found the issue, The setting automatically assigned workspaces to this metastore was checked. Unchecking this and manually assigning the metastore worked.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 08:43:25 GMT</pubDate>
    <dc:creator>Hil</dc:creator>
    <dc:date>2025-10-01T08:43:25Z</dc:date>
    <item>
      <title>Deply databricks workspace on azure with terraform - failed state: legacy access</title>
      <link>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133253#M4116</link>
      <description>&lt;P&gt;I'm trying to deploy a workspace on azure via terraform and i'm getting the following error:&lt;/P&gt;&lt;P&gt;"INVALID_PARAMETER_VALUE: Given value cannot be set for workspace~&amp;lt;id&amp;gt;~default_namespace_ws~ because: cannot set default namespace to hive_metastore since legacy access is disabled"&lt;/P&gt;&lt;P&gt;My thought was to set the default namespace to that of the UC. However, this only possible within the workspace itself, which in my case cannot be provisioned. Have anyone dealt with this issue?&lt;/P&gt;&lt;P&gt;To give a bit of context:&lt;/P&gt;&lt;P&gt;- I've setup a UC for the region that is set to be automatically assigned to new workspaces&lt;BR /&gt;- When manually provisioning a workspace everything work as expected&lt;/P&gt;&lt;P&gt;Any insight will be helpful, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 12:59:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133253#M4116</guid>
      <dc:creator>Hil</dc:creator>
      <dc:date>2025-09-29T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Deply databricks workspace on azure with terraform - failed state: legacy access</title>
      <link>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133273#M4117</link>
      <description>&lt;P&gt;This error happens because the legacy hive_metastore is disabled, and Terraform is trying to use it as the default namespace.The fix is to set the default namespace to Unity Catalog (UC) in your Terraform config, or leave it unset so UC is applied automatically.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2025 14:23:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133273#M4117</guid>
      <dc:creator>belforte</dc:creator>
      <dc:date>2025-09-29T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Deply databricks workspace on azure with terraform - failed state: legacy access</title>
      <link>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133280#M4119</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/186833"&gt;@Hil&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;You need to tell Terraform &lt;I&gt;not&lt;/I&gt; to set the default namespace to hive_metastore, but instead to your UC catalog (or just leave it unset so Databricks auto-assigns UC).&lt;/P&gt;&lt;P class=""&gt;In Terraform (Databricks provider), the relevant field is workspace.default_namespace:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;resource "databricks_mws_workspaces" "this" {
  # … your existing config …
  workspace_name = "my-ws"

  # Force default namespace to your UC catalog
  workspace {
    default_namespace = "my_catalog"   # &amp;lt;-- replace with your actual UC catalog
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Sep 2025 16:26:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133280#M4119</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-09-29T16:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deply databricks workspace on azure with terraform - failed state: legacy access</title>
      <link>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133414#M4131</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79394"&gt;@nayan_wylde&lt;/a&gt;, &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/187332"&gt;@belforte&lt;/a&gt;&amp;nbsp;thanks for the input. Would you know how this would apply with the azure provider? I tried using databricks_default_namespace_setting but it doesn't seem to work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resource "azurerm_databricks_workspace" "dbw" {
  name                = "${local.org}-dbw-${local.env}"
  resource_group_name = azurerm_resource_group.dbx.name
  location            = azurerm_resource_group.dbx.location
  sku                 = "premium"
}

resource "databricks_default_namespace_setting" "ns" {
  provider = databricks.workspace
  namespace {
    value = "main.default"
  }

  depends_on = [azurerm_databricks_workspace.dbw]
}&lt;/LI-CODE&gt;&lt;P&gt;To me it seems like that the provisioning is failed before terraform reaches the default namespace settings. The accounts console shows that the UC has been properly been assigned to the failed workspace.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 07:16:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133414#M4131</guid>
      <dc:creator>Hil</dc:creator>
      <dc:date>2025-10-01T07:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deply databricks workspace on azure with terraform - failed state: legacy access</title>
      <link>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133417#M4132</link>
      <description>&lt;P&gt;I found the issue, The setting automatically assigned workspaces to this metastore was checked. Unchecking this and manually assigning the metastore worked.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 08:43:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deply-databricks-workspace-on-azure-with-terraform-failed-state/m-p/133417#M4132</guid>
      <dc:creator>Hil</dc:creator>
      <dc:date>2025-10-01T08:43:25Z</dc:date>
    </item>
  </channel>
</rss>

