Skip to content

Commit fa6b580

Browse files
committed
Some edits
1 parent 5b926d2 commit fa6b580

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Choose how you want your commands obtain authorization to the storage account. T
7676

7777
#### Obtain authorization by using Azure Active Directory (AD)
7878

79-
The system ensures that your user account has the appropriate role-based access control (RBAC) assignments and ACL permissions.
79+
With this approach, the system ensures that your user account has the appropriate role-based access control (RBAC) assignments and ACL permissions.
8080

8181
```powershell
8282
$ctx = New-AzStorageContext -StorageAccountName '<storage-account-name>' -UseConnectedAccount
@@ -85,7 +85,7 @@ Replace the `<storage-account-name>` placeholder value with the name of your sto
8585

8686
#### Obtain authorization by using the storage account key
8787

88-
The system doesn't check the RBAC or ACL permissions of a resource.
88+
With this approach, the system doesn't check the RBAC or ACL permissions of a resource.
8989

9090
```powershell
9191
$storageAccount = Get-AzStorageAccount -ResourceGroupName "<resource-group-name>" -AccountName "<storage-account-name>"
@@ -194,7 +194,7 @@ Get-AzDataLakeGen2ItemContent -Context $ctx -FileSystem $filesystemName -Path $f
194194

195195
List the contents of a directory by using the `Get-AzDataLakeGen2ChildItem` cmdlet.
196196

197-
This example lists the contents of a directory named `my-directory`.
197+
This example lists the contents of a directory named `my-directory`.
198198

199199
To list the contents of a file system, omit the `-Path` parameter from the command.
200200

@@ -204,15 +204,18 @@ $dirname = "my-directory/"
204204
Get-AzDataLakeGen2ChildItem -Context $ctx -FileSystem $filesystemName -Path $dirname
205205
```
206206

207-
This example lists the contents of a directory named `my-directory` and includes ACLs in the list.
208-
It also uses the `-Recurse` parameter to list the contents of all subdirectories.
207+
This example does not return values for the `ACL`, `Permissions`, `Group`, and `Owner` properties. To obtain those values, use the `-FetchPermission` parameter.
209208

210-
To list the contents of a file system, omit the `-Path` parameter from the command.
209+
The following example lists the contents of the file system and prints values for the `ACL`, `Permissions`, `Group`, and `Owner` properties to the console. The example also uses the `-Recurse` parameter to list the contents of all subdirectories.
211210

212211
```powershell
213212
$filesystemName = "my-file-system"
214213
$dirname = "my-directory/"
215-
Get-AzDataLakeGen2ChildItem -Context $ctx -FileSystem $filesystemName -Path $dirname -Recurse -FetchPermission
214+
$properties = Get-AzDataLakeGen2ChildItem -Context $ctx -FileSystem $filesystemName -Path $dirname -Recurse -FetchPermission
215+
$properties.ACL
216+
$properties.Permissions
217+
$properties.Group
218+
$properties.Owner
216219
```
217220

218221
## Upload a file to a directory

0 commit comments

Comments
 (0)