Skip to content

electblake/PowerShell-DatabricksCloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DatabricksCloud

PowerShell module for working with Databricks using the Databricks CLI.

Requirements

Capabilities

  • Connect-Databricks: Sign in to a Databricks workspace or account host.
  • Get-DatabricksJob: List Databricks jobs and retrieve job details.

Install

# trust mise.toml
mise trust .

# install powershell and databricks-cli
mise install

# install module
Install-Module -Name DatabricksCloud -Scope CurrentUser

Usage

# 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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors