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>
This commit is contained in:
Azure SDK Bot 2022-02-25 13:05:55 -08:00 committed by GitHub
parent 4a72b62e39
commit f07a8e2656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,12 @@
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