“Only account admin can create metastores.” – how can I check if my account is an azure databricks account admin?

Issue

This Content is from Stack Overflow. Question asked by Chris Snow

I’m trying to create a databricks metastore:

resource "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
}

However, I’m getting the following error:

Error: cannot create metastore: Only account admin can create metastores.

Looking through the Azure docs, I see the following:

Account admins can manage your Databricks account-level configurations, including creation of workspaces, Unity Catalog metastores, billing, and cloud resources. Account admins can add users to the account and assign them admin roles. They can also give users access to workspaces, as long as those workspaces use identity federation.

In my terraform project, I’ve logged in using az login and my provider is setup

provider "databricks" {
  azure_workspace_resource_id = data.azurerm_databricks_workspace.this.id
  host = local.databricks_workspace_host
}

How can I check if my account is an azure databricks account admin?



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?