azure-sdk-for-cpp/eng/common/scripts/copy-from-blobstorage.ps1
Azure SDK Bot f07a8e2656
Sync eng/common directory with azure-sdk-tools for PR 2771 (#3377)
* Fix up parameters

* Update general azcopy tool for copying from blobstorage

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2022-02-25 13:05:55 -08:00

12 lines
416 B
PowerShell

param (
[Parameter(Mandatory = $true)]
[string] $SourceBlobPath,
[Parameter(Mandatory = $true)]
[string] $ApplicationId,
[Parameter(Mandatory = $true)]
[string] $DestinationDirectory
)
azcopy login --service-principal --application-id $ApplicationId
Write-Host "Copying from $SourceBlobPath to $DestinationDirectory ..."
azcopy cp "${SourceBlobPath}/*" $DestinationDirectory --recursive=true