Skip to content

Commit c13f773

Browse files
author
Erik Gassler
committed
Change AzurFileCopy to AzureCLI command
1 parent 9fb735a commit c13f773

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

azure-pipelines.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ stages:
131131
scriptType: pscore
132132
scriptLocation: inlineScript
133133
inlineScript: 'az storage blob delete-batch -s ''$web'' --account-name $(accountName)'
134-
- task: AzureFileCopy@4
134+
task: AzureCLI@2
135135
displayName: 'Copy Files to Azure Blob Storage'
136136
inputs:
137-
SourcePath: '$(System.DefaultWorkingDirectory)/$(webAppName)/bin/Release/net7.0/publish/wwwroot'
138-
azureSubscription: $(azureConnection)
139-
Destination: AzureBlob
140-
storage: $(accountName)
141-
ContainerName: 'web'
142-
BlobPrefix: '$'
137+
azureSubscription: {azureConnection}
138+
scriptType: ps
139+
scriptLocation: inlineScript
140+
inlineScript: |
141+
$Container = '$web'
142+
az storage copy -s '$(System.DefaultWorkingDirectory)/$(webAppName)/bin/Release/net7.0/publish/wwwroot' --destination-account-name {accountName} --destination-container $Container --recursive
143143
- task: AzureCLI@2
144144
displayName: 'Set Correct Content-Type Attributes'
145145
inputs:

0 commit comments

Comments
 (0)