0
votes

I would like to copy files to blob, but failing. I have blob prefix ''. What is should be and how to add?

ERROR:

[error]Upload to container: 'arm' in storage account: 'devopsstorageken' with blob prefix: '' failed with error: 'AzCopy.exe exited with non-zero exit code while uploading files to blob storage.' For more info please refer to https://aka.ms/azurefilecopyreadme

YML:

pool:
  vmImage: 'vs2017-win2016'

steps:

- task: AzureFileCopy@4
    inputs:
    SourcePath: '$(Build.Repository.LocalPath)/ARMTemplates'
    azureSubscription: 'TestRG-Conn'
    Destination: 'AzureBlob'
    storage: 'devopsstorageken'
    ContainerName: 'arm'
1

1 Answers

1
votes

What about indentation? inputs: should be on the task level.

blobPrefix can be anything you want. For example, the name of the environment or simply blobPrefix: test.