Skip to content

[BUG] fabric_connection for Azure Databricks skip_test_connection not working as intended & OAuth2 unsupported #886

@Cheptii

Description

@Cheptii

🐛 What happened?

I tried to create a fabric connection using OAuth2 for Azure Databricks in Terraform (in the UI it works), but I got the following error:

Image

I tried using an “unsupported” credential type to see what credential types are supported and I got the following list:

Image

I decided to create the connection with another type and skip the test connection so the connection is created directly. Then, I would change it to OAuth2 in the UI, so I tried using the listed credential types above other than OAuth2 since it didn’t work, and I got the same error (the skip test connection value is not supported) for all 3 other credential types:
Basic:

Image

Key:

Image

ServicePrincipal:

Image

During terraform plan, setting skip_test_connection = true in the credential_details block of the fabric_connection resource always fails with the error "Unsupported skip test connection", regardless of which credential type is used.

🔬 How to reproduce?

No response

🏗️ Code Sample / Log

resource "fabric_connection" "run" {
  display_name      = "test"
  connectivity_type = "VirtualNetworkGateway"
  gateway_id        = data.fabric_gateway.this.id

  connection_details = {
    type            = "Databricks"
    creation_method = "Databricks.Catalogs"
    parameters = [
      {
        name  = "host"
        value = "adb...............azure.databricks.net"
      },
      {
        name  = "httpPath"
        value = "/sql/1.0/warehouses/xxxxxxxxxxxxx"
      }
    ]
  }

  credential_details = {
    connection_encryption = "NotEncrypted"
    credential_type       = "ServicePrincipal" # OAuth2, Key, Basic
    single_sign_on_type   = "MicrosoftEntraID"
    skip_test_connection  = true # Not working for any of the credential types, besides OAuth2 which is not working at all

    service_principal_credentials = {
      client_id                = "dummy"
      client_secret_wo         = "dummy"
      client_secret_wo_version = 1
      tenant_id                = "dummy"
    }
  }
}

📷 Screenshots

No response

📈 Expected behavior

No response

🌌 Environment (Provider Version)

1.8

🌌 Environment (Terraform Version)

1.13.5

🌌 Environment (OS)

Linux

📎 Additional context

No response

🔰 Code of Conduct

  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions