Use AzFileCopy task instead of AzCopy.exe

This commit is contained in:
Aditya Patwardhan
2022-11-04 11:57:21 -07:00
parent 14c0eab38b
commit 316da9b857
@@ -65,17 +65,13 @@ jobs:
Write-Host "##$vstsCommandString"
displayName: Create MsixBundle
# Removing install as AzCopy is expected to be on the image
#- pwsh: |
# Import-module '$(BUILD.SOURCESDIRECTORY)/build.psm1'
# Install-AzCopy
# displayName: Install AzCopy
- pwsh: |
## We use AzCopy v8.1 in our release pipeline, see the documentation at:
## https://docs.microsoft.com/en-us/previous-versions/azure/storage/storage-use-azcopy
Import-module '$(BUILD.SOURCESDIRECTORY)/build.psm1'
$azcopy = Find-AzCopy
& $azcopy /Source:$(BundleDir) /Dest:https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)-private /DestKey:$(StorageAccountKey) /Pattern:*.msixbundle /Y
displayName: Upload MSIX Bundle package to Az Blob
- task: AzureFileCopy@4
displayName: 'Upload MSIX Bundle package to Az Blob'
inputs:
SourcePath: '$(BundleDir)/*.msixbundle'
azureSubscription: '$(AzureFileCopySubscription)'
Destination: AzureBlob
storage: '$(StorageAccount)'
ContainerName: '$(AzureVersion)-private'
resourceGroup: '$(StorageResourceGroup)'
condition: succeeded()