Problem connecting vscode with databricks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2025 12:16 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2025 01:33 PM
Hello @miki1999,
Try removing any comments (lines starting with ‘;’) from the configuration file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 02:25 AM
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
then added the relevant profile in the .databrickscfg file
and it got detected by the extension
Hope it helps 🍻