Skip to content

[ISSUE] Issue with databricks_connection SQL SERVER M2M OAuth resourceΒ #5200

@tim-mills-cb

Description

@tim-mills-cb

Configuration

  name            = "sql_connection"
  connection_type = "SQLSERVER"
  options = {
    host                   = "sql-host"
    port                   = 1433
    applicationIntent      = "ReadOnly"
    client_id              = "client_id"
    client_secret          = "client_secret"
    authorization_endpoint = "https://login.microsoftonline.com/${data.azurerm_client_config.current.tenant_id}/oauth2/token"
  }
  read_only = true
}

Expected Behavior

Connection should be created using the newly support OAuth M2M instead of it trying to create using U2M.

Actual Behavior

Error: cannot create connection: CONNECTION/CONNECTION_SQLSERVER_OAUTH_U2M must include the following option(s): oauth_redirect_uri,pkce_verifier,oauth_scope,authorization_code.

Steps to Reproduce

  1. terraform apply-->

Terraform and provider versions

Terraform v1.13.3
on windows_amd64

  • provider registry.terraform.io/azure/azapi v2.7.0
  • provider registry.terraform.io/databricks/databricks v1.97.0
  • provider registry.terraform.io/hashicorp/azuread v2.33.0
  • provider registry.terraform.io/hashicorp/azurerm v3.117.1
  • provider registry.terraform.io/hashicorp/external v1.2.0
  • provider registry.terraform.io/hashicorp/local v1.4.0
  • provider registry.terraform.io/hashicorp/null v2.1.2
  • provider registry.terraform.io/hashicorp/random v3.7.2
  • provider registry.terraform.io/hashicorp/time v0.12.1

Is it a regression?

Not worked since the release of SQL Server M2M

Debug Output

Important Factoids

Would you like to implement a fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform bugthis issue cannot be fixed or worked around in scope of this plugin. Please create a support case.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions