Import-AzureRmDataLakeStoreItem
Uploads a local file or directory to a Data Lake Store.
Important
You've reached a webpage for an outdated version of Azure PowerShell. All versions of the AzureRM PowerShell module are outdated, but not out of support. The Az PowerShell module is now the recommended PowerShell module for interacting with Azure. To get started with the Az PowerShell module, see Install Azure PowerShell. To learn how to migrate to the Az PowerShell module, see Migrate Azure PowerShell from AzureRM to Az.
Syntax
Import-AzureRmDataLakeStoreItem
[-Account] <String>
[-Path] <String>
[-Destination] <DataLakeStorePathInstance>
[-Recurse]
[-Resume]
[-ForceBinary]
[-Force]
[-Concurrency <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Import-AzureRmDataLakeStoreItem
[-Account] <String>
[-Path] <String>
[-Destination] <DataLakeStorePathInstance>
[-Recurse]
[-Resume]
[-ForceBinary]
[-Force]
[-Concurrency <Int32>]
[-DiagnosticLogLevel <LogLevel>]
-DiagnosticLogPath <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<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" -Concurrency 4
This command uploads the file SrcFile.csv and adds it to the MyFiles folder in the Data Lake Store as File.csv with a concurrency of 4.
Parameters
Specifies the name of the Data Lake Store account.
Type: | String |
Aliases: | AccountName |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indicates the number of files or chunks to upload in parallel. Default will be computed as a best effort based on system specifications.
Type: | Int32 |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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 |
The credentials, account, tenant, and subscription used for communication with azure.
Type: | Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the Data Lake Store path to which to upload a file or folder, starting with the root directory (/).
Type: | Microsoft.Azure.Commands.DataLakeStore.Models.DataLakeStorePathInstance |
Position: | 2 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Optionally indicates the diagnostic log level to use to record events during the file or folder import. Default is Error.
Type: | Microsoft.Azure.Commands.DataLakeStore.Models.LogLevel |
Accepted values: | Debug, Information, Error, None |
Position: | Named |
Default value: | Error |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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 |
Accept wildcard characters: | False |
Indicates that this operation can overwrite the destination file if it already exists.
Type: | SwitchParameter |
Position: | 8 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indicates that the file(s) being copied should be copied with no concern for new line preservation across appends.
Type: | SwitchParameter |
Position: | 5 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the local path of the file or folder to upload.
Type: | String |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indicates that this operation should upload all items in all subfolders.
Type: | SwitchParameter |
Position: | 3 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indicates that the file(s) being copied are a continuation of a previous upload. This will cause the system to attempt to resume from the last file that was not fully uploaded.
Type: | SwitchParameter |
Position: | 4 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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 |
Inputs
Microsoft.Azure.Commands.DataLakeStore.Models.DataLakeStorePathInstance
Microsoft.Azure.Commands.DataLakeStore.Models.LogLevel
Outputs
The full path in the Data Lake Store account to the uploaded file or folder.