Skip to content

Commit 401c9cd

Browse files
Merge pull request #261369 from normesta/azcopy
A tweak to support OAuth in file service transfers
2 parents 9551a76 + 2f07e6d commit 401c9cd

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

articles/storage/common/storage-use-azcopy-files.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Transfer data with AzCopy and file storage. AzCopy is a command-lin
44
author: normesta
55
ms.service: azure-storage
66
ms.topic: how-to
7-
ms.date: 10/02/2022
7+
ms.date: 12/15/2023
88
ms.author: normesta
99
ms.subservice: storage-common-concepts
1010
---
@@ -13,15 +13,22 @@ ms.subservice: storage-common-concepts
1313

1414
AzCopy is a command-line utility that you can use to copy files to or from a storage account. This article contains example commands that work with Azure Files.
1515

16-
Before you begin, see the [Get started with AzCopy](storage-use-azcopy-v10.md) article to download AzCopy and familiarize yourself with the tool.
16+
## Get started
1717

18-
> [!TIP]
19-
> The examples in this article enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
18+
See the [Get started with AzCopy](storage-use-azcopy-v10.md) article to download AzCopy and learn about the ways that you can provide authorization credentials to the storage service.
19+
20+
> [!NOTE]
21+
> The examples in this article show the use of a SAS token to authorize access. However, for commands that target files and directories, you can now provide authorization credentials by using Microsoft Entra ID and omit the SAS token from those commands. You'll still have to use a SAS token in any command that targets only the file share or the account (For example: `'azcopy make https://mystorageaccount.file.core.windows.net/myfileshare'` or `'azcopy copy 'https://mystorageaccount.file.core.windows.net'`.
22+
>
23+
> To learn more, see [Authorize AzCopy](storage-use-azcopy-v10.md#authorize-azcopy).
2024
2125
## Create file shares
2226

2327
You can use the [azcopy make](storage-ref-azcopy-make.md) command to create a file share. The example in this section creates a file share named `myfileshare`.
2428

29+
> [!TIP]
30+
> This example encloses path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
31+
2532
**Syntax**
2633

2734
`azcopy make 'https://<storage-account-name>.file.core.windows.net/<file-share-name><SAS-token>'`
@@ -38,6 +45,9 @@ For detailed reference docs, see [azcopy make](storage-ref-azcopy-make.md).
3845

3946
You can use the [azcopy copy](storage-ref-azcopy-copy.md) command to upload files and directories from your local computer.
4047

48+
> [!TIP]
49+
> The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
50+
4151
This section contains the following examples:
4252

4353
> [!div class="checklist"]
@@ -63,7 +73,7 @@ This section contains the following examples:
6373

6474
**Syntax**
6575

66-
`azcopy copy '<local-file-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<file-name><SAS-token>'`
76+
`azcopy copy '<local-file-path>' 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<file-name>'`
6777

6878
**Example**
6979

@@ -174,6 +184,9 @@ For detailed reference, see the [azcopy copy](storage-ref-azcopy-copy.md) refere
174184

175185
You can use the [azcopy copy](storage-ref-azcopy-copy.md) command to download files, directories, and file shares to your local computer.
176186

187+
> [!TIP]
188+
> The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
189+
177190
This section contains the following examples:
178191

179192
> [!div class="checklist"]
@@ -323,6 +336,9 @@ AzCopy uses [server-to-server](/rest/api/storageservices/put-block-from-url) [AP
323336

324337
You can also copy specific versions of a file by referencing the **DateTime** value of a share snapshot. To learn more about share snapshots, see [Overview of share snapshots for Azure Files](../files/storage-snapshots-files.md).
325338

339+
> [!TIP]
340+
> The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
341+
326342
This section contains the following examples:
327343

328344
> [!div class="checklist"]
@@ -439,6 +455,8 @@ You can synchronize the contents of a local file system with a file share or syn
439455
>
440456
> For a complete list, see [options](storage-ref-azcopy-sync.md#options).
441457
458+
The examples in this section enclose path arguments with single quotes (''). Use single quotes in all command shells except for the Windows Command Shell (cmd.exe). If you're using a Windows Command Shell (cmd.exe), enclose path arguments with double quotes ("") instead of single quotes ('').
459+
442460
### Update a file share with changes to a local file system
443461

444462
In this case, the file share is the destination, and the local file system is the source.

0 commit comments

Comments
 (0)