I am trying to create a metastore via the Terraform Azure databricks_metastore resource but I keep getting the error:
Error: cannot create metastore: Failed to check metastore quota limit for region westeurope.
This is the exact code I am using to create the resource:
# Create the databricks metastore and assign it to the databricks workspace
resource "databricks_metastore" "this" {
name = "databricksmetastore"
storage_root = "abfss://[email protected]/"
region = "westeurope"
owner = ""
}
I have tried using both my Databricks account and a service principal application id, which are both in fact Account Admins, for the owner argument in the code block above to no avail.
Needless to say, there is no metastore in the region I am trying to create it in and if I use the GUI with my account I am able to successfully create and assign the metastore to the workspace.
It seems you're encountering an issue creating a Databricks metastore in the West Europe region using Terraform. The error message suggests a problem with checking the metastore quota limit, which could be due to a few different reasons.
westeurope
region.This Issue can be overcome by making the changes in the type of data bricks account provisioned to Premium and by changing the region to any other available region which is readily available in the list of regions supported by Azure Databricks metastore. Here the region mentioned by you was allocated globally not a dedicated one associated with your Account subscription alone.
Here for our convenience, I tried using
westus
from the list of available region for the requirement you asked for.My terraform configuration:
Output:
Terraform apply: