Unity through terraform

saurabh12521
New Contributor II

I am working on automation of Unity through terraform. I have referred below link link to get started :

https://registry.terraform.io/providers/databricks/databricks/latest/docs/guides/unity-catalog-azure

I am facing issue when I create metastore using terraform :

esource "databricks_metastore" "this" {

name = "primary"

storage_root = format("abfss://%s@%s.dfs.core.windows.net/",

azurerm_storage_container.unity_catalog.name,

azurerm_storage_account.unity_catalog.name)

force_destroy = true

}

resource "databricks_metastore_data_access" "first" {

metastore_id = databricks_metastore.this.id

name = "the-keys"

azure_managed_identity {

access_connector_id = azapi_resource.access_connector.id

}

is_default = true

}

resource "databricks_metastore_assignment" "this" {

workspace_id = local.databricks_workspace_id

metastore_id = databricks_metastore.this.id

default_catalog_name = "hive_metastore"

}

##################################

Please find error as below :

imageI have also tried changing provider to databricks/databricks. still same problem.

Please help us to resolve this