vcpkg/scripts/azure-pipelines/windows/deploy-azcopy.ps1

14 lines
491 B
PowerShell

# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: MIT
if (Test-Path -LiteralPath "$PSScriptRoot/utility-prefix.ps1") {
. "$PSScriptRoot/utility-prefix.ps1"
}
$AzCopyUrl = Get-AssetUrl `
-InternetUrl 'https://github.com/Azure/azure-storage-azcopy/releases/download/v10.32.6/azcopy_windows_amd64_10.32.6.zip' `
-BlobAssetName 'azcopy_windows_amd64_10.32.6.zip'
mkdir -Force "C:\AzCopy10"
DownloadAndUnzip -Url $AzCopyUrl -Destination "C:\AzCopy10" -StripRootDirectory