Hi, I am trying to create Admin user for Azure databricks that looks like:
databricks = [
{
databricks_name = "fer-fads-p-adb-wksp01"
resource_group_name = "fer-fads-p-rsg-adb01"
location = "West Europe"
sku = "premium"
managed_resource_group_name = "fer-fads-p-mrsg-adb01"
infrastructure_encryption_enabled = true
databricks_admin_users = [
"..."
]
custom_parameters = {
no_public_ip = true
virtual_network_id = "fer-fads-p-euwe-vnet-spoke"
public_subnet_name = "fer-fads-p-euwe-snet-spoke-h01"
private_subnet_name = "fer-fads-p-euwe-snet-spoke-c01"
}
# Added to support PE
private_endpoints = [
{
subresource_name = "databricks_ui_api"
subnet_id = "fer-fads-p-pe-adb01"
}
]
}
]
But getting error while create admin user:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform planned the following actions, but then encountered a problem:
# module.databricks.databricks_user.admin_user["..."] will be created
+ resource "databricks_user" "admin_user" {
+ active = true
+ allow_cluster_create = false
+ allow_instance_pool_create = false
+ databricks_sql_access = false
+ display_name = (known after apply)
+ id = (known after apply)
+ user_name = "..."
+ workspace_access = false
}
Plan: 1 to add, 0 to change, 0 to destroy.
Error: Invalid JSON received (529 bytes): <!doctype html><html><head><meta charset="utf-8"/><meta http-equiv="Content-Language" content="en"/><title>Databricks - Sign In</title><meta name="viewport" content="width=960"/><link rel="icon" type="image/png" href="/favicon.ico"/><meta http-equiv="content-type" content="text/html; charset=UTF8"/><link rel="icon" href="/favicon.ico"><script defer="defer" src="/static/js/login/login.96b6985d.js"></script></head><body class="light-mode"><uses-legacy-bootstrap><div id="login-page"></div></uses-legacy-bootstrap></body></html>
with module.databricks.data.databricks_group.admins,
on ../modules/landingzone/FADS/databricks/databricks_admin.tf line 8, in data "databricks_group" "admins":
8: data "databricks_group" "admins" {