Skip to content

Commit 6dfd0dd

Browse files
Sync eng/common directory with azure-sdk-tools for PR 2771 (Azure#23223)
* Fix up parameters * Update general azcopy tool for copying from blobstorage Co-authored-by: Chidozie Ononiwu <[email protected]>
1 parent 74a6797 commit 6dfd0dd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
param (
2+
[Parameter(Mandatory = $true)]
3+
[string] $SourceBlobPath,
4+
[Parameter(Mandatory = $true)]
5+
[string] $ApplicationId,
6+
[Parameter(Mandatory = $true)]
7+
[string] $DestinationDirectory
8+
)
9+
10+
azcopy login --service-principal --application-id $ApplicationId
11+
Write-Host "Copying from $SourceBlobPath to $DestinationDirectory ..."
12+
azcopy cp "${SourceBlobPath}/*" $DestinationDirectory --recursive=true

0 commit comments

Comments
 (0)