< Back

Import-DatabricksFolder

Sat Jan 11, 2020 10:00 am

NAME Import-DatabricksFolder



SYNOPSIS

Pushes the contents of a local folder (and subfolders) to Databricks





SYNTAX

Import-DatabricksFolder [[-BearerToken] <String>] [[-Region] <String>] [-LocalPath] <String> [-DatabricksPath]

<String> [-Clean] [<CommonParameters>]





DESCRIPTION

Use to deploy code from a repo





PARAMETERS

-BearerToken <String>

Your Databricks Bearer token to authenticate to your workspace (see User Settings in Datatbricks WebUI)



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Region <String>

Azure Region - must match the URL of your Databricks workspace, example northeurope



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LocalPath <String>

Path to your repo/local files that you would like to deploy to Databricks (should be in Source format)



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DatabricksPath <String>

The Databricks folder to target



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Clean [<SwitchParameter>]

Optional Switch. Delete the Databricks Workspace folder before copying files



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author: Simon D'Morias / Data Thirst Ltd



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Import-DatabricksFolder -BearerToken $BearerToken -Region $Region -LocalPath 'Samples\\DummyNotebooks'

-DatabricksPath 'Shared\\ProjectX'















RELATED LINKS