1

We are trying to create a databricks workspace using terraform in Azure. As configured in the terraform script Databricks is created and but continuously getting error on token creation and secret creation. we are using SP to authenticate to Azure.

resource "databricks_token" "pat" {  
   comment    = "Using Tf"
   lifetime_seconds = var.token_lifetime
   depends_on = [
     azurerm_databricks_workspace.databricks
  ]
}

Error: cannot create token: default auth: cannot configure default credentials. Config: azure_client_secret=*, azure_client_id=, azure_tenant_id=**. Env: ARM_CLIENT_SECRET, ARM_CLIENT_ID, ARM_TENANT_ID

Creating Using Git workflow and the configured SP is having contributor access to subscription

Tried using automation

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
Varghese
  • 11
  • 1

1 Answers1

0

You need to declare Databricks provider correctly - I don't see the host parameter in your list. Something like this:

provider "databricks" {
  host = "https://${azurerm_databricks_workspace.databricks.workspace_url}"
}
Alex Ott
  • 80,552
  • 8
  • 87
  • 132