Skip to content

Latest commit

 

History

History
221 lines (166 loc) · 4.86 KB

New-AzDataLakeStoreItem.md

File metadata and controls

221 lines (166 loc) · 4.86 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.PowerShell.Cmdlets.DataLakeStore.dll-Help.xml
Az.DataLakeStore
A8222AB8-0003-4AC6-8114-294ABE8054CE
2.0.0

New-AzDataLakeStoreItem

SYNOPSIS

Creates a new file or folder in Data Lake Store.

SYNTAX

New-AzDataLakeStoreItem [-Account] <String> [-Path] <DataLakeStorePathInstance> [[-Value] <Object>]
 [[-Encoding] <Encoding>] [-Folder] [-Force] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The New-AzDataLakeStoreItem cmdlet creates a new file or folder in Data Lake Store.

EXAMPLES

Example 1: Create a new file and a new folder

New-AzDataLakeStoreItem -AccountName "ContosoADL" -Path "/NewFile.txt"
New-AzDataLakeStoreItem -AccountName "ContosoADL" -Path "/NewFolder" -Folder

The first command creates the file NewFile.txt for the specified account. The second command creates the folder NewFolder at the root folder.

PARAMETERS

-Account

Specifies the name of the Data Lake Store account.

Type: System.String
Parameter Sets: (All)
Aliases: AccountName

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Encoding

Specifies the encoding for the item to create. The acceptable values for this parameter are:

  • Unknown
  • String
  • Unicode
  • Byte
  • BigEndianUnicode
  • UTF8
  • UTF7
  • Ascii
  • Default
  • Oem
  • BigEndianUTF32
Type: System.Text.Encoding
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Folder

Indicates that this operation creates a folder.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Force

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

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Path

Specifies the Data Lake Store path of the item to create, starting with the root directory (/).

Type: Microsoft.Azure.Commands.DataLakeStore.Models.DataLakeStorePathInstance
Parameter Sets: (All)
Aliases:

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

-Value

Specifies the content to add to the item you create.

Type: System.Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.String

Microsoft.Azure.Commands.DataLakeStore.Models.DataLakeStorePathInstance

System.Object

System.Text.Encoding

System.Management.Automation.SwitchParameter

OUTPUTS

System.String

NOTES

RELATED LINKS

Get-AzDataLakeStoreItem

Export-AzDataLakeStoreItem

Import-AzDataLakeStoreItem

New-AzDataLakeStoreItem

Remove-AzDataLakeStoreItem

Test-AzDataLakeStoreItem