< Back

Set-AzureRmDataLakeStoreItemAcl

Tue Jan 29, 2019 9:45 pm

NAME Set-AzureRmDataLakeStoreItemAcl



SYNOPSIS

Modifies the ACL of a file or folder in Data Lake Store.





SYNTAX

Set-AzureRmDataLakeStoreItemAcl [-Account] <String> [-Path] <DataLakeStorePathInstance> [-Acl] <DataLakeStoreItemAce[]> [-DefaultProfile

<IAzureContextContainer>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmDataLakeStoreItemAcl cmdlet modifies the access control list (ACL) of a file or folder in Data Lake Store.





PARAMETERS

-Account <String>

Specifies the name of the Data Lake Store account.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Acl <DataLakeStoreItemAce[]>

Specifies an ACL for a file or a folder.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Indicates the resulting ACL should be returned.



Required? false

Position? named

Default value False

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Path <DataLakeStorePathInstance>

Specifies the Data Lake Store path of the file or folder, starting with the root directory (/).



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

DataLakeStoreItemAce[]

Parameter 'Acl' accepts value of type 'DataLakeStoreItemAce[]' from the pipeline





OUTPUTS

IEnumerable<DataLakeStoreItemAce>

If PassThru is specified, will return the resulting list of ACL entries.





NOTES









Example 1: Set the ACL for a file and a folder



PS C:\\>$ACL = Get-AzureRmDataLakeStoreItemAcl -AccountName "ContosoADL" -Path /

PS C:\\> Set-AzureRmDataLakeStoreItemAcl -AccountName "ContosoADL" -Path "/MyFiles/Test.txt" -Acl $ACL



The first command gets the ACL for the root directory of the ContosoADL account, and then stores it in the $ACL variable.



The second command sets the ACL for the file Test.txt to the one in $ACL.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... oreitemacl