I am trying to create databricks_metastore resource but it fails with the eblow error.
cannot create metastore: Management API token must be provided for service principal admin user login.
Did anyone came across similar issue?
provider “databricks” {
host = module.databricks.workspaceURL
azure_workspace_resource_id = module.databricks.resourceId
azure_client_id = var.servicePrincipalId
azure_client_secret = var.servicePrincipalKey
azure_tenant_id = var.tenantId
}
resource “databricks_metastore” “databricksmetastore” {
provider = databricks
name = “primary”
storage_root = format(“abfss://%s@%s.dfs.core.windows.net/”,
data.azurerm_storage_container.unitycatalogcontainer.name,
module.datalakeStorageV2.name)
owner = “uc admins”
force_destroy = true
}