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/files/storage-how-to-use-files-portal.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,10 +204,12 @@ New-AzStorageDirectory `
204
204
205
205
To create a new directory named **myDirectory** at the root of your Azure file share, use the [`az storage directory create`](/cli/azure/storage/directory) command:
206
206
207
+
> [!NOTE]
208
+
> If you don't provide credentials with your commands, Azure CLI will query for your storage account key. You can also provide your storage account key with the command by using a variable such as `--account-key $storageAccountKey` or in plain text such as `--account-key "your-storage-account-key-here"`.
209
+
207
210
```azurecli-interactive
208
211
az storage directory create \
209
212
--account-name $storageAccountName \
210
-
--account-key $storageAccountKey \
211
213
--share-name $shareName \
212
214
--name "myDirectory" \
213
215
--output none
@@ -273,7 +275,6 @@ date > SampleUpload.txt
273
275
274
276
az storage file upload \
275
277
--account-name $storageAccountName \
276
-
--account-key $storageAccountKey \
277
278
--share-name $shareName \
278
279
--source "SampleUpload.txt" \
279
280
--path "myDirectory/SampleUpload.txt"
@@ -286,7 +287,6 @@ After you upload the file, you can use the [`az storage file list`](/cli/azure/s
0 commit comments