Import-​Azure​Rm​Data​Lake​Store​Item

Uploads a local file or directory to a Data Lake Store.

Syntax

Import-AzureRmDataLakeStoreItem
      [-Account] <String>
      [-Path] <String>
      [-Destination] <DataLakeStorePathInstance>
      [-Recurse]
      [-Resume]
      [-ForceBinary]
      [[-PerFileThreadCount] <Int32>]
      [[-ConcurrentFileCount] <Int32>]
      [-Force]
      [-DiagnosticLogLevel <LogLevel>]
      -DiagnosticLogPath <String>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Import-AzureRmDataLakeStoreItem cmdlet uploads a local file or directory to a Data Lake Store.

Examples

Example 1: Upload a file

PS C:\>Import-AzureRmDataLakeStoreItem -AccountName "ContosoADL" -Path "C:\SrcFile.csv" -Destination "/MyFiles/File.csv"

This command uploads the file SrcFile.csv and adds it to the MyFiles folder in the Data Lake Store as File.csv.

Required Parameters

-Account

Specifies the name of the Data Lake Store account.

Type:String
Aliases:AccountName
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Destination

Specifies the Data Lake Store path to which to upload a file or folder, starting with the root directory (/).

Type:DataLakeStorePathInstance
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DiagnosticLogPath

Specifies the path for the diagnostic log to record events to during the file or folder import.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Path

Specifies the local path of the file or folder to upload.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-ConcurrentFileCount

Specify the maximum number of files to upload in parallel for a folder upload. The default value is five (5).

Type:Int32
Position:7
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DiagnosticLogLevel

Optionally indicates the diagnostic log level to use to record events during the file or folder import. Default is Error.

Type:LogLevel
Position:Named
Default value:Error
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Force

Indicates that this operation can overwrite the destination file if it already exists.

Type:SwitchParameter
Position:8
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ForceBinary

Indicates that this operation uploads the file as a binary file.

Type:SwitchParameter
Position:5
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PerFileThreadCount

Specifies the maximum number of threads to use per file. The default value is ten (10).

Type:Int32
Position:6
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Recurse

Indicates that this operation should upload all items in all subfolders.

Type:SwitchParameter
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Resume

Indicates that this operation should resume a previously canceled or failed upload.

Type:SwitchParameter
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

string