Introduction
Previous blogposts :
- Databricks series : Starting a new python project in Visual Studio Code (Part I)
- Databricks series : setting up a connection to Databricks from local IDE (Part II)
Deploy the code
Open a terminal window in Visual Studio Code.
> databricks auth login --host https://dbc-6270be54-d21b.cloud.databricks.com/
--profile DBprofile
Validate the bundle
Next step is validate the code
> databricks bundle validate
results in :
Name: DatabricksProject Target: dev Workspace: Host: https://dbc-xxxxxx-d21b.cloud.databricks.com User: hdenooijer@gmail.com Path: /Workspace/Users/xxxxx@gmail.com/.bundle/DatabricksProject/dev
Deploy the code
And deploy the code!
> databricks bundle deploy
results in :
Uploading bundle files to /Workspace/Users/hdenooijer@gmail.com/.bundle/DatabricksProject/dev/files... Created jobs.transfer_job Files: 1 uploaded, 0 deleted Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
Databricks now deploys:
- The Python code.
- The job configuration.
- The required project files.
Where is everything in Databricks
Job-configuration
The Job itself is not necessarily found as a YAML file within the Workspace.
Go to: Workflows → Jobs & Pipelines
Search for: python-data-transfer
There, you can view:
- The Job configuration.
- The configured parameters.
- The Python Script Task.
- The execution history.
- The logs and results.
The YAML configuration remains part of your local DAB project in Visual Studio Code. Databricks uses that configuration to create or update the Job.
So thats it. The code is deployed to Databricks with DAB
Hennie


























