Skip to content

Commit 6ce3fba

Browse files
committed
Fixing some comments in code example
1 parent 17fd828 commit 6ce3fba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/storage/blobs/data-lake-storage-directory-file-acl-powershell.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,10 @@ $Id = "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
341341
# Get the directory ACL
342342
$acl = (Get-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Path $dirname).ACL
343343
344-
# Create the new ACL object that will be update to server
344+
# Create the new ACL object.
345345
[Collections.Generic.List[System.Object]]$aclnew =$acl
346346
347-
# Remove the ACL entries that will be added later to avoid duplicate
347+
# To avoid duplicate ACL, remove the ACL entries that will be added later.
348348
foreach ($a in $aclnew)
349349
{
350350
if ($a.AccessControlType -eq "group" -and $a.DefaultScope -eq $true-and $a.EntityId -eq $id)
@@ -354,10 +354,10 @@ foreach ($a in $aclnew)
354354
}
355355
}
356356
357-
# Add Acl Entries
357+
# Add ACL Entries
358358
$aclnew = New-AzDataLakeGen2ItemAclObject -AccessControlType group -EntityId $id -Permission "-wx" -DefaultScope -InputObject $aclnew
359359
360-
# Update to Server
360+
# Update ACL on server
361361
Update-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Path $dirname -Acl $aclnew
362362
363363
```
@@ -372,10 +372,10 @@ $Id = "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
372372
# Get the file ACL
373373
$acl = (Get-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Path $fileName).ACL
374374
375-
# Create the new ACL object that will be update to server
375+
# Create the new ACL object.
376376
[Collections.Generic.List[System.Object]]$aclnew =$acl
377377
378-
# Remove the ACL entries that will be added later to avoid duplicate
378+
# To avoid duplicate ACL, remove the ACL entries that will be added later.
379379
foreach ($a in $aclnew)
380380
{
381381
if ($a.AccessControlType -eq "group" -and $a.DefaultScope -eq $true-and $a.EntityId -eq $id)
@@ -385,10 +385,10 @@ foreach ($a in $aclnew)
385385
}
386386
}
387387
388-
# Add Acl Entries
388+
# Add ACL Entries
389389
$aclnew = New-AzDataLakeGen2ItemAclObject -AccessControlType group -EntityId $id -Permission "-wx" -DefaultScope -InputObject $aclnew
390390
391-
# Update to Server
391+
# Update ACL on server
392392
Update-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Path $fileName -Acl $aclnew
393393
394394
```

0 commit comments

Comments
 (0)