Problem connecting vscode with databricks

miki1999
New Contributor

I have a problem connecting VSCode with databricks. I am doing all the steps to add databricks in VSCode but after the last step I get this error in VSCode:
“Error connecting to the workspace: "Can't set configuration 'authProfile' without selecting a target"."”. The configuration looks like below:

;This profile is autogenerated by the Databricks Extension for VS Code
[dbw-test-01]
host=https://adb-1111111111.3.azuredatabricks.net/
token=aaaaaaaa

Alberto_Umana
Databricks Employee
Databricks Employee

Hello @miki1999,

Try removing any comments (lines starting with ‘;’) from the configuration file.

• Open VSCode and go to the Extensions view (Ctrl+Shift+X).
• Search for “Databricks” and ensure you have the latest version installed.

inpappas
New Contributor II

I faced the same problem today. The case was that the databricks.yml file inside my bundle did not include a targets mapping. 
I created one like so 

inpappas_2-1748942642443.png

 

then added the relevant profile in the .databrickscfg file

inpappas_1-1748941907232.png

and it got detected by the extension

inpappas_4-1748942701678.png

 

Hope it helps 🍻