<?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 Problem with provisioning lakehouse via Terraform in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/problem-with-provisioning-lakehouse-via-terraform/m-p/48856#M495</link>
    <description>&lt;P&gt;I am trying to provision the lakehouse on Azure using the Terraform template provided here: &lt;A href="https://github.com/databricks/terraform-databricks-examples/tree/main/examples/adb-lakehouse" target="_blank"&gt;https://github.com/databricks/terraform-databricks-examples/tree/main/examples/adb-lakehouse&lt;/A&gt;. I have started from scratch and have only added a resource group, a storage account and a container in Azure before I run the Terraform code. As per documentation, I have also modified the content of "terraform.tfvars". After running the Terraform code, I get the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;╷
│ Error: cannot create catalog: No metastore assigned for the current workspace.
│
│   with module.adb-lakehouse-data-assets.databricks_catalog.bronze-catalog,
│   on ..\..\modules\adb-lakehouse-uc\uc-data-assets\uc-data-assets.tf line 1, in resource "databricks_catalog" "bronze-catalog":
│    1: resource "databricks_catalog" "bronze-catalog" {
│
╵
╷
│ Error: cannot create external location: No metastore assigned for the current workspace.
│
│   with module.adb-lakehouse-data-assets.databricks_external_location.landing-external-location,
│   on ..\..\modules\adb-lakehouse-uc\uc-data-assets\uc-data-assets.tf line 26, in resource "databricks_external_location" "landing-external-location":
│   26: resource "databricks_external_location" "landing-external-location" {
│
╵
╷
│ Error: cannot create metastore data access: No metastore assigned for the current workspace.
│
│   with module.adb-lakehouse-uc-metastore.databricks_metastore_data_access.access-connector-data-access,
│   on ..\..\modules\adb-lakehouse-uc\uc-metastore\uc-metastore.tf line 11, in resource "databricks_metastore_data_access" "access-connector-data-access":
│   11: resource "databricks_metastore_data_access" "access-connector-data-access" {
│&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked in the portal and see that the metastore is created. The access connector is also created and is assigned the required role (&lt;SPAN&gt;Storage Blob Data Contributor&lt;/SPAN&gt;). The workspace is also connected to the UC metastore. But what I don't find is the managed identity under "Storage Credentials" in Unity Catalog. I appreciate any input on this.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 13:43:13 GMT</pubDate>
    <dc:creator>Masoomeh</dc:creator>
    <dc:date>2023-10-10T13:43:13Z</dc:date>
    <item>
      <title>Problem with provisioning lakehouse via Terraform</title>
      <link>https://community.databricks.com/t5/administration-architecture/problem-with-provisioning-lakehouse-via-terraform/m-p/48856#M495</link>
      <description>&lt;P&gt;I am trying to provision the lakehouse on Azure using the Terraform template provided here: &lt;A href="https://github.com/databricks/terraform-databricks-examples/tree/main/examples/adb-lakehouse" target="_blank"&gt;https://github.com/databricks/terraform-databricks-examples/tree/main/examples/adb-lakehouse&lt;/A&gt;. I have started from scratch and have only added a resource group, a storage account and a container in Azure before I run the Terraform code. As per documentation, I have also modified the content of "terraform.tfvars". After running the Terraform code, I get the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;╷
│ Error: cannot create catalog: No metastore assigned for the current workspace.
│
│   with module.adb-lakehouse-data-assets.databricks_catalog.bronze-catalog,
│   on ..\..\modules\adb-lakehouse-uc\uc-data-assets\uc-data-assets.tf line 1, in resource "databricks_catalog" "bronze-catalog":
│    1: resource "databricks_catalog" "bronze-catalog" {
│
╵
╷
│ Error: cannot create external location: No metastore assigned for the current workspace.
│
│   with module.adb-lakehouse-data-assets.databricks_external_location.landing-external-location,
│   on ..\..\modules\adb-lakehouse-uc\uc-data-assets\uc-data-assets.tf line 26, in resource "databricks_external_location" "landing-external-location":
│   26: resource "databricks_external_location" "landing-external-location" {
│
╵
╷
│ Error: cannot create metastore data access: No metastore assigned for the current workspace.
│
│   with module.adb-lakehouse-uc-metastore.databricks_metastore_data_access.access-connector-data-access,
│   on ..\..\modules\adb-lakehouse-uc\uc-metastore\uc-metastore.tf line 11, in resource "databricks_metastore_data_access" "access-connector-data-access":
│   11: resource "databricks_metastore_data_access" "access-connector-data-access" {
│&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked in the portal and see that the metastore is created. The access connector is also created and is assigned the required role (&lt;SPAN&gt;Storage Blob Data Contributor&lt;/SPAN&gt;). The workspace is also connected to the UC metastore. But what I don't find is the managed identity under "Storage Credentials" in Unity Catalog. I appreciate any input on this.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 13:43:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/problem-with-provisioning-lakehouse-via-terraform/m-p/48856#M495</guid>
      <dc:creator>Masoomeh</dc:creator>
      <dc:date>2023-10-10T13:43:13Z</dc:date>
    </item>
  </channel>
</rss>

