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)
- Databricks series : Setting up a Databricks project in Visual Studio Code (part III)
Deploy the code
Open a terminal window in Visual Studio Code and authenticate with databricks auth login
> databricks auth login --host https://dbc-xxxxxx-d21b.cloud.databricks.com/
--profile DBprofile
Validate the bundle
Next step is validate the code with databricks bundle validate
> databricks bundle validate
results in :
Name: DatabricksProject Target: dev Workspace: Host: https://dbc-xxxxxx-d21b.cloud.databricks.com User: xxxxxx@gmail.com Path: /Workspace/Users/xxxxx@gmail.com/.bundle/DatabricksProject/dev
Deploy the code
And deploy the code with databricks bundle deploy
> databricks bundle deploy
results in :
Uploading bundle files to /Workspace/Users/xxxxr@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 that's it. The code is deployed to Databricks with DAB
Hennie


























