From 6aec2a380719f73fe497845dd917ffd0a7ee898f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 27 Oct 2023 14:12:31 -0700 Subject: [PATCH] Update to using new azcopy auto-login (#5080) azcopy login is going to be deprecated soon in version 10.22 so we need to move to the new auto-login model that is documented at https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory#authorize-a-service-principal-by-using-a-client-secret Co-authored-by: Wes Haggard --- eng/common/scripts/copy-from-blobstorage.ps1 | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 eng/common/scripts/copy-from-blobstorage.ps1 diff --git a/eng/common/scripts/copy-from-blobstorage.ps1 b/eng/common/scripts/copy-from-blobstorage.ps1 deleted file mode 100644 index 3cc1133ae..000000000 --- a/eng/common/scripts/copy-from-blobstorage.ps1 +++ /dev/null @@ -1,12 +0,0 @@ -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 \ No newline at end of file