Hey team, I'm trying to standardize the development environment setup in our team. I've written up a shell script that I want our devs to run in WSL2 after setup. The shell script does the following:
1. setup Azure CLI - install and authenticate
2. Install Databricks CLI
3. Configures `databrickscfg` file with a `dev` Databricks profile that uses Azure CLI to authenticate
4. Installs dbt-core
5. Configures dbt-core profiles.yml <-- This is where my problems arise.
I've run this setup in a virtual Python environment on my WSL2 setup and everything works fine. I've setup dbt-core to authenticate to a SQL warehouse using OAuth and using the Client ID from a registered app in Azure. This setup works for me, but for whatever reason my colleague isn't able to get the dbt-core profile to authenticate. Every attempt to validate the connection using `dbt debug` command we get the error `Runtime error> No data received in callback`. We use a dbt project as part of a Databricks Asset Bundle and the colleague is able to successfully authenticate to Databricks, connect to their Personal Cluster etc. But dbt-core will not connect successfully. I followed the directions per the links below but no success. Both documents just say that run `dbt debug` and you will authenticate and it will work. The prompt to open a browser window works but then loads to a failure. This user definitely has access to the workspace and the SQL warehouse as they can connect via the GUI. Is there something wrong with the profile (see below)? Better even, is there a standard way to setup dbt-core with Azure Databricks and OAuth U2M that I'm missing?
Configure Azure Databricks sign-on from dbt Core with Microsoft Entra ID - Azure Databricks | Micros...
Secure OAuth Configuration for Azure Databricks and dbt: A Guide to Enhance Your Data Workflows
```
gold:
outputs:
dev:
host: "<host_id>.azuredatabricks.net"
http_path: "<http_path>"
catalog: dev_catalog
schema: default
threads: 4
type: databricks
auth_type: oauth
client_id: "{{ env_var('DATABRICKS_CLIENT_ID') }}" <-- tested as a local environment variable and hard coded
target: dev
```
Any help is greatly appreciated.