Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot auth to Databricks provider over AZDO Federated Service Connection #259

Open
nonamecoder2002 opened this issue Nov 11, 2024 · 2 comments

Comments

@nonamecoder2002
Copy link

Hello. We have encountered an issue with auth into Databricks workspace over Federated Service Connection.

Databricks provider configuration:

provider "databricks" {
  host                        = azurerm_databricks_workspace.data_hub_dbw.workspace_url
  azure_workspace_resource_id = azurerm_databricks_workspace.data_hub_dbw.id
  # azure_use_msi = true
}

Pipeline task .yaml

steps:
- task: ms-devlabs.custom-terraform-tasks.custom-terraform-release-task.TerraformTaskV4@4
  displayName: 'Terraform : azurerm : plan'
  inputs:
    command: plan
    workingDirectory: '$(System.DefaultWorkingDirectory)/<PathToTerraformModule>'
    commandOptions: '-var-file=./$(component)-$(environment).tfvars '
    environmentServiceNameAzureRM: '<ServiceConnection>'
    backendAzureRmUseEnvironmentVariablesForAuthentication: false
    backendAzureRmUseEntraIdForAuthentication: true

Error we are getting:

2024-11-07T14:41:17.0769966Z Error: cannot read instance pool: failed during request visitor: default auth: azure-cli: cannot get account info: exit status 1. Config: host=<DatabricksWorkspaceURL>, azure_workspace_resource_id=<ResourseID>, azure_client_id=***, azure_tenant_id=<TenantID>. Env: ARM_CLIENT_ID, ARM_TENANT_ID
@mericstam
Copy link
Collaborator

Hi sorry for late reply. is this something you know anything about @jaredfholgate ?

br
Manuel

@jaredfholgate
Copy link
Member

According to the docs for this provider it only supports Azure CLI auth. https://registry.terraform.io/providers/databricks/databricks/latest/docs/guides/azure-authenticate-with-oidc#create-a-devops-pipeline-that-authenticates-to-azure-databricks

If you want it to support environment variable based auth, you would need to raise an issue on that provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants