You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/blobs/data-lake-storage-directory-file-acl-powershell.md
+15-21Lines changed: 15 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,27 +54,21 @@ This article shows you how to use PowerShell to create and manage directories, f
54
54
55
55
## Connect to the account
56
56
57
-
1. Open a Windows PowerShell command window.
57
+
Open a Windows PowerShell command window, and then sign in to your Azure subscription with the `Connect-AzAccount` command and follow the on-screen directions.
58
58
59
-
2. Sign in to your Azure subscription with the `Connect-AzAccount` command and follow the on-screen directions.
60
-
61
-
```powershell
62
-
Connect-AzAccount
63
-
```
64
-
65
-
3. If your identity is associated with more than one subscription, then set your active subscription to subscription of the storage account that you want create and manage directories in.
Replace the `<subscription-id>` placeholder value with the ID of your subscription.
63
+
If your identity is associated with more than one subscription, then set your active subscription to subscription of the storage account that you want create and manage directories in. In this example, replace the `<subscription-id>` placeholder value with the ID of your subscription.
Choose how you want your commands obtain authorization to the storage account. Then, get the storage account context. Your commands can obtain authorization by using Azure Active Directory (AD), or by using the storage account key.
69
+
Next, choose how you want your commands to obtain authorization to the storage account.
76
70
77
-
####Obtain authorization by using Azure Active Directory (AD)
71
+
###Option 1: Obtain authorization by using Azure Active Directory (AD)
78
72
79
73
With this approach, the system ensures that your user account has the appropriate role-based access control (RBAC) assignments and ACL permissions.
This example does not return values for the `ACL`, `Permissions`, `Group`, and `Owner` properties. To obtain those values, use the `-FetchPermission` parameter.
199
+
This example doesn't return values for the `ACL`, `Permissions`, `Group`, and `Owner` properties. To obtain those values, use the `-FetchPermission` parameter.
208
200
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.
201
+
The following example lists the contents of the same directory, but it also uses the `-FetchPermission` parameter to return values for the `ACL`, `Permissions`, `Group`, and `Owner` properties.
210
202
211
203
```powershell
212
204
$filesystemName = "my-file-system"
@@ -218,6 +210,8 @@ $properties.Group
218
210
$properties.Owner
219
211
```
220
212
213
+
To list the contents of a file system, omit the `-Path` parameter from the command.
214
+
221
215
## Upload a file to a directory
222
216
223
217
Upload a file to a directory by using the `New-AzDataLakeGen2Item` cmdlet.
0 commit comments