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 <Wes.Haggard@microsoft.com>
This commit is contained in:
parent
71416d73b1
commit
6aec2a3807
@ -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
|
||||
Loading…
Reference in New Issue
Block a user