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:
parent
4a72b62e39
commit
f07a8e2656
12
eng/common/scripts/copy-from-blobstorage.ps1
Normal file
12
eng/common/scripts/copy-from-blobstorage.ps1
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user