Set-​Azure​Rm​Data​Lake​Store​Item​Owner

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

Syntax

Set-AzureRmDataLakeStoreItemOwner
   [-Account] <String>
   [-Path] <DataLakeStorePathInstance>
   [-Type] <Owner>
   [-Id] <Guid>
   [-PassThru]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Set-AzureRmDataLakeStoreItemOwner cmdlet modifies the owner of a file or folder in Data Lake Store.

Examples

Example 1: Set the owner for an item

PS C:\>Set-AzureRmDataLakeStoreItemOwner -AccountName "ContosoADL" -Path / -Type User -Id (Get-AzureRmADUser -Mail "PattiFuller@contoso.com").ObjectId

This command sets the owner for the root directory to Patti Fuller.

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
-Id

Specifies the object ID of the AzureActive Directory user, group, or service principal to use as the owner.

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

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

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

Specifies the type of owner to set. The acceptable values for this parameter are: User and Group.

Type:Owner
Parameter Sets:User, Group
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-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
-PassThru

Indicates the resulting updated owner should be returned.

Type:SwitchParameter
Position:Named
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

If PassThru is specified, returns the updated owner.