Skip to content

Commit 37bd6f6

Browse files
committed
Script-related changes
1 parent e396a7d commit 37bd6f6

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

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

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,48 @@ To find example commands, see any of these articles.
141141

142142
- [Transfer data with AzCopy and Amazon S3 buckets](storage-use-azcopy-s3.md)
143143

144-
## Configure, optimize, and troubleshoot AzCopy
144+
## Use AzCopy in a script
145145

146-
See [Configure, optimize, and troubleshoot AzCopy](storage-use-azcopy-configure.md)
146+
The version of azCopy that you download by using the `https://aka.ms/downloadazcopy-v10-linux` or `https://aka.ms/downloadazcopy-v10-windows` link will be updated over time. The link remains the same, but the target of the link will point to new versions of AzCopy over time.
147+
148+
If your script downloads AzCopy by using either of these links, it could encounter issues if these links lead to new versions of AzCopy that contain changes that are not compatible with your script.
149+
150+
You can avoid these issues by obtaining a version-specific link to AzCopy. That way, your script downloads the same exact version of AzCopy each time that it runs.
151+
152+
To obtain the link, run this command:
153+
154+
**Linux**
155+
156+
```
157+
curl -v https://aka.ms/downloadazcopy-v10-linux
158+
```
159+
160+
**Windows**
161+
162+
```
163+
(curl https://aka.ms/downloadazcopy-v10-windows -MaximumRedirection 0 -ErrorAction silentlycontinue).RawContent
164+
```
165+
166+
The Url appears in the output of this command.
167+
168+
Your script can then download AzCopy by using the version-specific URL.
169+
170+
**Linux**
171+
172+
```
173+
wget -O azcopyv10.tar https://azcopyvnext.azureedge.net/release20190301/azcopy_linux_amd64_10.0.8.tar.gz
174+
tar -xf azcopyv10.tar --strip-components=1
175+
./azcopy
176+
```
177+
178+
> [!NOTE]
179+
> `--strip-components=1` on the `tar` command removes the top-level folder that contains the version name, and instead extracts the binary directly into the current folder. This allows the script to be updated with a new version of `azcopy` by only updating the `wget` URL.
180+
181+
**Windows**
182+
```
183+
Invoke-WebRequest https://azcopyvnext.azureedge.net/release20190517/azcopy_windows_amd64_10.1.2.zip -OutFile azcopyv10.zip
184+
<<Unzip here>>
185+
```
147186

148187
## Use AzCopy in Storage Explorer
149188

@@ -163,8 +202,13 @@ In Storage Explorer, choose **Preview**->**Use AzCopy for Improved Blob Upload a
163202
If you need to use the previous version of AzCopy (AzCopy v8.1), see either of the following links:
164203

165204
- [AzCopy on Windows (v8)](https://docs.microsoft.com/previous-versions/azure/storage/storage-use-azcopy)
205+
166206
- [AzCopy on Linux (v8)](https://docs.microsoft.com/previous-versions/azure/storage/storage-use-azcopy-linux)
167207

208+
## Configure, optimize, and troubleshoot AzCopy
209+
210+
See [Configure, optimize, and troubleshoot AzCopy](storage-use-azcopy-configure.md)
211+
168212
## Next steps
169213

170214
If you have questions, issues, or general feedback, submit them [on GitHub](https://github.com/Azure/azure-storage-azcopy) page.

0 commit comments

Comments
 (0)