cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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

2 REPLIES 2

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 ๐Ÿป

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now