Skip to content

Commit 9046e3c

Browse files
authored
Merge pull request #110206 from normesta/normesta-sdk-interop
some spot fixes
2 parents bb5bec7 + 8a85c47 commit 9046e3c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: normesta
66
ms.service: storage
77
ms.subservice: data-lake-storage-gen2
88
ms.topic: conceptual
9-
ms.date: 03/30/2020
9+
ms.date: 04/02/2020
1010
ms.author: normesta
1111
ms.reviewer: prishet
1212
---
@@ -126,8 +126,8 @@ $dir.ACL
126126
$dir.Permissions
127127
$dir.Group
128128
$dir.Owner
129-
$dir.Metadata
130129
$dir.Properties
130+
$dir.Properties.Metadata
131131
```
132132

133133
## Rename or move a directory
@@ -229,8 +229,9 @@ This example uploads the same file, but then sets the permissions, umask, proper
229229
```powershell
230230
$file = New-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Path $destPath -Source $localSrcFile -Permission rwxrwxrwx -Umask ---rwx--- -Property @{"ContentEncoding" = "UDF8"; "CacheControl" = "READ"} -Metadata @{"tag1" = "value1"; "tag2" = "value2" }
231231
$file1
232-
$file1.File.Metadata
233-
$file1.File.Properties
232+
$file1.Properties
233+
$file1.Properties.Metadata
234+
234235
```
235236

236237
## Show file properties
@@ -246,8 +247,8 @@ $file.ACL
246247
$file.Permissions
247248
$file.Group
248249
$file.Owner
249-
$file.Metadata
250250
$file.Properties
251+
$file.Properties.Metadata
251252
```
252253

253254
## Delete a file
@@ -319,7 +320,7 @@ $acl = set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rw-
319320
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl
320321
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission -wx -InputObject $acl
321322
Update-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Acl $acl
322-
$filesystem = Get-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Path $dirname
323+
$filesystem = Get-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName
323324
$filesystem.ACL
324325
```
325326

@@ -364,7 +365,7 @@ $filesystemName = "my-file-system"
364365
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rw-
365366
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl
366367
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission -wx -InputObject $acl
367-
Get-AzDataLakeGen2ChildItem -Context $ctx -FileSystem $filesystemName -Recurse -FetchProperty | Update-AzDataLakeGen2Item -Acl $acl
368+
Get-AzDataLakeGen2ChildItem -Context $ctx -FileSystem $filesystemName -Recurse | Update-AzDataLakeGen2Item -Acl $acl
368369
```
369370
<a id="gen1-gen2-map" />
370371

0 commit comments

Comments
 (0)