PowerShell module for working with Databricks using the Databricks CLI.
- Powershell 7 Recommended, Minimum PowerShell 5+
- databricks-cli
- https://mise.jdx.dev/getting-started.html
Connect-Databricks: Sign in to a Databricks workspace or account host.Get-DatabricksJob: List Databricks jobs and retrieve job details.
# trust mise.toml
mise trust .
# install powershell and databricks-cli
mise install
# install module
Install-Module -Name DatabricksCloud -Scope CurrentUser# Load the module from this repo checkout
Import-Module ./DatabricksCloud/DatabricksCloud.psd1
# If installed from PSGallery, use:
# Import-Module DatabricksCloud
# Login to workspace host
Connect-Databricks -Url 'https://<workspace>.cloud.databricks.com'
# Login to account host (with account ID)
Connect-Databricks -Url 'https://accounts.cloud.databricks.com' -Id '<account-id>'
# List workspace jobs
Get-DatabricksJob
# Export workspace jobs using -PassThru
Get-DatabricksJob -PassThru | ConvertTo-Json | Out-File -FilePath './jobs.json'