< Back

Import-AzureDatabricksContent

Sun Jan 19, 2020 6:07 pm

NAME Import-AzureDatabricksContent



SYNOPSIS

Copies content from your local machine to a remote Azure Databricks instance.





SYNTAX

Import-AzureDatabricksContent [-DBCFile] <FileInfo> [-Connection] <Object> [-Path] <String> [<CommonParameters>]





DESCRIPTION

Copies content from your local machine to a remote Azure Databricks instance. The imported file should be of type

".dbc" (which you can create using the Export-AzureDatabricksContent function).

Otherwise, it can be a byte array of content. The target directory should not exist, and will be created.





PARAMETERS

-DBCFile <FileInfo>

A path to your local DBC file you want to import.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <Object>

An object that represents an Azure Databricks API connection where you want to copy your content to.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Path <String>

The path to copy your content into. The target folder should not exist (but any parent directories should).



Required? true

Position? 3

Default value

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: Drew Furgiuele (@pittfurg), http://www.port1433.com

Website: https://www.igs.com

Copyright: (c) 2019 by IGS, licensed under MIT

License: MIT https://opensource.org/licenses/MIT



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



PS C:\\>Import-AzureDatabricksContent -DBCFile exportedContents.dbc -Connection $Connection -Path "/NewFolder"



Copies the contents of the DBC file to the Databricks instance defined in $Connection into the path "NewFolder" in

the root of the instance.











RELATED LINKS