Skip to content

Commit 9abe6cb

Browse files
Updating to PowerShell 6.1 from PowerShellCore
- Renaming from PowerShell Core --> PowerShell 6.1+ - Fixing command for Linux as it was missing an escape (\).
1 parent 499995f commit 9abe6cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ To obtain the link, run this command:
149149

150150
| Operating system | Command |
151151
|--------|-----------|
152-
| **Linux** | `curl -s -D- https://aka.ms/downloadazcopy-v10-linux | grep ^Location` |
152+
| **Linux** | `curl -s -D https://aka.ms/downloadazcopy-v10-linux \| grep ^Location` |
153153
| **Windows PowerShell** | `(Invoke-WebRequest https://aka.ms/downloadazcopy-v10-windows -MaximumRedirection 0 -ErrorAction SilentlyContinue).headers.location` |
154-
| **PowerShell Core** | `(Invoke-WebRequest https://aka.ms/downloadazcopy-v10-windows -MaximumRedirection 0 -ErrorAction SilentlyContinue -SkipHttpErrorCheck).headers.location` |
154+
| **PowerShell 6.1+** | `(Invoke-WebRequest https://aka.ms/downloadazcopy-v10-windows -MaximumRedirection 0 -ErrorAction SilentlyContinue -SkipHttpErrorCheck).headers.location` |
155155

156156
> [!NOTE]
157157
> For Linux, `--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.
@@ -170,7 +170,7 @@ $AzCopy = (Get-ChildItem -path '.\' -Recurse -File -Filter 'azcopy.exe').FullNam
170170
# Invoke AzCopy
171171
& $AzCopy
172172
```
173-
**PowerShell Core**
173+
**PowerShell 6.1+**
174174
```PowerShell
175175
Invoke-WebRequest 'https://azcopyvnext.azureedge.net/release20220315/azcopy_windows_amd64_10.14.1.zip' -OutFile 'azcopyv10.zip'
176176
$AzCopy = (Expand-archive -Path '.\azcopyv10.zip' -Destinationpath '.\' -PassThru | where-object {$_.Name -eq 'azcopy.exe'}).FullName

0 commit comments

Comments
 (0)