Skip to content

Commit 0549efa

Browse files
committed
Minimizing the number of times that this tip appears in the docs
1 parent 57fc226 commit 0549efa

File tree

3 files changed

+33
-127
lines changed

3 files changed

+33
-127
lines changed

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

Lines changed: 15 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ See the [Get started with AzCopy](storage-use-azcopy-v10.md) article to download
2727
2828
## Create a container
2929

30+
> [!TIP]
31+
> 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 ('').
32+
3033
You can use the [azcopy make](storage-ref-azcopy-make.md) command to create a container. The examples in this section create a container named `mycontainer`.
3134

3235
| | |
@@ -35,9 +38,6 @@ You can use the [azcopy make](storage-ref-azcopy-make.md) command to create a co
3538
| **Example** | `azcopy make 'https://mystorageaccount.blob.core.windows.net/mycontainer'` |
3639
| **Example** (hierarchical namespace) | `azcopy make 'https://mystorageaccount.dfs.core.windows.net/mycontainer'` |
3740

38-
> [!TIP]
39-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
40-
4141
For detailed reference docs, see [azcopy make](storage-ref-azcopy-make.md).
4242

4343
## Upload files
@@ -52,11 +52,11 @@ This section contains the following examples:
5252
> * Upload the contents of a directory
5353
> * Upload specific files
5454
55-
> [!NOTE]
56-
> AzCopy doesn't automatically calculate and store the file's md5 hash code. If you want AzCopy to do that, then append the `--put-md5` flag to each copy command. That way, when the blob is downloaded, AzCopy calculates an MD5 hash for downloaded data and verifies that the MD5 hash stored in the blob's `Content-md5` property matches the calculated hash.
57-
5855
For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
5956

57+
> [!TIP]
58+
> 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 ('').
59+
6060
### Upload a file
6161

6262
| | |
@@ -65,9 +65,6 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
6565
| **Example** | `azcopy copy 'C:\myDirectory\myTextFile.txt' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myTextFile.txt'` |
6666
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory\myTextFile.txt' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myTextFile.txt'` |
6767

68-
> [!TIP]
69-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
70-
7168
You can also upload a file by using a wildcard symbol (*) anywhere in the file path or file name. For example: `'C:\myDirectory\*.txt'`, or `C:\my*\*.txt`.
7269

7370
> [!NOTE]
@@ -83,19 +80,13 @@ This example copies a directory (and all of the files in that directory) to a bl
8380
| **Example** | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --recursive` |
8481
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --recursive` |
8582

86-
> [!TIP]
87-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
88-
8983
To copy to a directory within the container, just specify the name of that directory in your command string.
9084

9185
| | |
9286
|--------|-----------|
9387
| **Example** | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory' --recursive` |
9488
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory' --recursive` |
9589

96-
> [!TIP]
97-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
98-
9990
If you specify the name of a directory that does not exist in the container, AzCopy creates a new directory by that name.
10091

10192
### Upload the contents of a directory
@@ -108,9 +99,6 @@ You can upload the contents of a directory without copying the containing direct
10899
| **Example** | `azcopy copy 'C:\myDirectory\*' 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory'` |
109100
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory\*' 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory'` |
110101

111-
> [!TIP]
112-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
113-
114102
> [!NOTE]
115103
> Append the `--recursive` flag to upload files in all sub-directories.
116104
@@ -128,14 +116,10 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
128116
| **Example** | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --include-path 'photos;documents\myFile.txt' --recursive` |
129117
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --include-path 'photos;documents\myFile.txt' --recursive` |
130118

131-
> [!TIP]
132-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
133-
134119
In this example, AzCopy transfers the `C:\myDirectory\photos` directory and the `C:\myDirectory\documents\myFile.txt` file. You need to include the `--recursive` option to transfer all files in the `C:\myDirectory\photos` directory.
135120

136121
You can also exclude files by using the `--exclude-path` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
137122

138-
139123
#### Use wildcard characters
140124

141125
Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pattern` option. Specify partial names that include the wildcard characters. Separate names by using a semicolin (`;`).
@@ -146,9 +130,6 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
146130
| **Example** | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --include-pattern 'myFile*.txt;*.pdf*'` |
147131
| **Example** (hierarchical namespace) | `azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --include-pattern 'myFile*.txt;*.pdf*'` |
148132

149-
> [!TIP]
150-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
151-
152133
You can also exclude files by using the `--exclude-pattern` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
153134

154135
The `--include-pattern` and `--exclude-pattern` options apply only to filenames and not to the path. If you want to copy all of the text files that exist in a directory tree, use the `–recursive` option to get the entire directory tree, and then use the `–include-pattern` and specify `*.txt` to get all of the text files.
@@ -170,6 +151,9 @@ This section contains the following examples:
170151
171152
For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
172153

154+
> [!TIP]
155+
> 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 ('').
156+
173157
### Download a file
174158

175159
| | |
@@ -178,9 +162,6 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
178162
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myTextFile.txt' 'C:\myDirectory\myTextFile.txt'` |
179163
| **Example** (hierarchical namespace) | `azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myTextFile.txt' 'C:\myDirectory\myTextFile.txt'` |
180164

181-
> [!TIP]
182-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
183-
184165
### Download a directory
185166

186167
| | |
@@ -189,9 +170,6 @@ For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
189170
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory' 'C:\myDirectory' --recursive` |
190171
| **Example** (hierarchical namespace) | `azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/myBlobDirectory 'C:\myDirectory' --recursive` |
191172

192-
> [!TIP]
193-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
194-
195173
This example results in a directory named `C:\myDirectory\myBlobDirectory` that contains all of the downloaded files.
196174

197175
### Download the contents of a directory
@@ -206,9 +184,6 @@ You can download the contents of a directory without copying the containing dire
206184
| **Syntax** | `azcopy copy 'https://<storage-account-name>.blob.core.windows.net/<container-name>/*' '<local-directory-path>/'` |
207185
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/myBlobDirectory/*' 'C:\myDirectory'` |
208186

209-
> [!TIP]
210-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
211-
212187
> [!NOTE]
213188
> Append the `--recursive` flag to download files in all sub-directories.
214189
@@ -226,9 +201,6 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
226201
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-path 'photos;documents\myFile.txt' --recursive` |
227202
| **Example** (hierarchical namespace) | `azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-path 'photos;documents\myFile.txt'--recursive` |
228203

229-
> [!TIP]
230-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
231-
232204
In this example, AzCopy transfers the `https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory/photos` directory and the `https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory/documents/myFile.txt` file. You need to include the `--recursive` option to transfer all files in the `https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory/photos` directory.
233205

234206
You can also exclude files by using the `--exclude-path` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
@@ -243,9 +215,6 @@ Use the [azcopy copy](storage-ref-azcopy-copy.md) command with the `--include-pa
243215
| **Example** | `azcopy copy 'https://mystorageaccount.blob.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-pattern 'myFile*.txt;*.pdf*'` |
244216
| **Example** (hierarchical namespace) | `azcopy copy 'https://mystorageaccount.dfs.core.windows.net/mycontainer/FileDirectory' 'C:\myDirectory' --include-pattern 'myFile*.txt;*.pdf*'` |
245217

246-
> [!TIP]
247-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
248-
249218
You can also exclude files by using the `--exclude-pattern` option. To learn more, see [azcopy copy](storage-ref-azcopy-copy.md) reference docs.
250219

251220
The `--include-pattern` and `--exclude-pattern` options apply only to filenames and not to the path. If you want to copy all of the text files that exist in a directory tree, use the `–recursive` option to get the entire directory tree, and then use the `–include-pattern` and specify `*.txt` to get all of the text files.
@@ -273,44 +242,36 @@ This section contains the following examples:
273242
274243
For detailed reference docs, see [azcopy copy](storage-ref-azcopy-copy.md).
275244

245+
> [!TIP]
246+
> 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 ('').
247+
276248
### Copy a blob to another storage account
277249

278250
| | |
279251
|--------|-----------|
280252
| **Syntax** | `azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<blob-path>?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>/<blob-path>'` |
281253
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net/mycontainer/myTextFile.txt?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-07-04T05:30:08Z&st=2019-07-03T21:30:08Z&spr=https&sig=CAfhgnc9gdGktvB=ska7bAiqIddM845yiyFwdMH481QA8%3D' 'https://mydestinationaccount.blob.core.windows.net/mycontainer/myTextFile.txt'` |
282254

283-
> [!TIP]
284-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
285-
286255
### Copy a directory to another storage account
287256

288257
| | |
289258
|--------|-----------|
290259
| **Syntax** | `azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<directory-path>?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>' --recursive` |
291260
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net/mycontainer/myBlobDirectory?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-07-04T05:30:08Z&st=2019-07-03T21:30:08Z&spr=https&sig=CAfhgnc9gdGktvB=ska7bAiqIddM845yiyFwdMH481QA8%3D' 'https://mydestinationaccount.blob.core.windows.net/mycontainer' --recursive` |
292261

293-
> [!TIP]
294-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
295-
296262
### Copy a container to another storage account
297263

298264
| | |
299265
|--------|-----------|
300266
| **Syntax** | `azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>' --recursive` |
301267
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net/mycontainer?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-07-04T05:30:08Z&st=2019-07-03T21:30:08Z&spr=https&sig=CAfhgnc9gdGktvB=ska7bAiqIddM845yiyFwdMH481QA8%3D' 'https://mydestinationaccount.blob.core.windows.net/mycontainer' --recursive` |
302268

303-
> [!TIP]
304-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
305-
306269
### Copy all containers, directories, and blobs to another storage account
307270

308271
| | |
309272
|--------|-----------|
310273
| **Syntax** | `azcopy copy 'https://<source-storage-account-name>.blob.core.windows.net/?<SAS-token>' 'https://<destination-storage-account-name>.blob.core.windows.net/' --recursive'` |
311274
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-07-04T05:30:08Z&st=2019-07-03T21:30:08Z&spr=https&sig=CAfhgnc9gdGktvB=ska7bAiqIddM845yiyFwdMH481QA8%3D' 'https://mydestinationaccount.blob.core.windows.net' --recursive` |
312-
> [!TIP]
313-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
314275

315276
## Synchronize files
316277

@@ -328,6 +289,9 @@ If you set the `--delete-destination` flag to `true` AzCopy deletes files withou
328289
329290
For detailed reference docs, see [azcopy sync](storage-ref-azcopy-sync.md).
330291

292+
> [!TIP]
293+
> 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 ('').
294+
331295
### Update a container with changes to a local file system
332296

333297
In this case, the container is the destination, and the local file system is the source.
@@ -337,9 +301,6 @@ In this case, the container is the destination, and the local file system is the
337301
| **Syntax** | `azcopy sync '<local-directory-path>' 'https://<storage-account-name>.blob.core.windows.net/<container-name>' --recursive` |
338302
| **Example** | `azcopy sync 'C:\myDirectory' 'https://mystorageaccount.blob.core.windows.net/mycontainer' --recursive` |
339303

340-
> [!TIP]
341-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
342-
343304
### Update a local file system with changes to a container
344305

345306
In this case, the local file system is the destination, and the container is the source.
@@ -349,8 +310,6 @@ In this case, the local file system is the destination, and the container is the
349310
| **Syntax** | `azcopy sync 'https://<storage-account-name>.blob.core.windows.net/<container-name>' 'C:\myDirectory' --recursive` |
350311
| **Example** | `azcopy sync 'https://mystorageaccount.blob.core.windows.net/mycontainer' 'C:\myDirectory' --recursive` |
351312
|
352-
> [!TIP]
353-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
354313

355314
### Update a container with changes in another container
356315

@@ -361,8 +320,6 @@ The first container that appears in this command is the source. The second one i
361320
| **Syntax** | `azcopy sync 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>' --recursive` |
362321
| **Example** | `azcopy sync 'https://mysourceaccount.blob.core.windows.net/mycontainer' 'https://mydestinationaccount.blob.core.windows.net/mycontainer' --recursive` |
363322

364-
In a Windows Command Shell (cmd.exe), enclose paths in double quotes ("") instead of single quotes ('').
365-
366323
### Update a directory with changes to a directory in another file share
367324

368325
The first directory that appears in this command is the source. The second one is the destination.
@@ -372,9 +329,6 @@ The first directory that appears in this command is the source. The second one i
372329
| **Syntax** | `azcopy sync 'https://<source-storage-account-name>.blob.core.windows.net/<container-name>/<directory-name>' 'https://<destination-storage-account-name>.blob.core.windows.net/<container-name>/<directory-name>' --recursive` |
373330
| **Example** | `azcopy copy 'https://mysourceaccount.blob.core.windows.net/<container-name>/myDirectory' 'https://mydestinationaccount.blob.core.windows.net/mycontainer/myDirectory' --recursive` |
374331

375-
> [!TIP]
376-
> If you're using a Windows Command Shell (cmd.exe), enclose path arguments in double quotes ("") instead of single quotes ('').
377-
378332
## Next steps
379333

380334
Find more examples in any of these articles:

0 commit comments

Comments
 (0)