cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Problem with provisioning lakehouse via Terraform

Masoomeh
New Contributor II

I am trying to provision the lakehouse on Azure using the Terraform template provided here: https://github.com/databricks/terraform-databricks-examples/tree/main/examples/adb-lakehouse. 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:

 

ā•·
ā”‚ 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" {
ā”‚

 

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 (Storage Blob Data Contributor). 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.

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonā€™t want to miss the chance to attend and share knowledge.

If there isnā€™t a group near you, start one and help create a community that brings people together.

Request a New Group