Azure-pipelines-tasks: AzureFileCopy cannot copy to $root container.

Created on 29 Dec 2016  路  13Comments  路  Source: microsoft/azure-pipelines-tasks

Upload to container: '$root' in storage account: 'accountName' with blobprefix: '' failed with error: 'Azure Storage container names can only contain lowercase alpha-numeric characters or hyphens
Parameter name: containerName' For more info please refer to https://aka.ms/azurefilecopyreadme
Release bug

All 13 comments

@tabeth by any chance have you provided $root as input for container. For container name special characters like $ are not supported

@chshrikh I'm running into same issue. Please see Azure Storage documentation regarding the $root container: https://msdn.microsoft.com/en-us/library/azure/hh488356.aspx

@tabeth , @rjygraham , thanks for reporting this issue. Its a genuine issue and will be fixed.

We should support this. Can you please ensure that it works

@vincentdass @RoopeshNair Hi Did you manage to fix this issue? i am running into the same issue..

Upload to container: '' in storage account: '' with blobprefix: '' failed with error: '' For more info please refer to https://aka.ms/azurefilecopyreadme

PS: I am using team services.. azure file copy task to upload file in to the blob container

@BhaskarDasari , the fix is in progress.
For a workaround, please use other containers, until the issue is resolved.

Can you also please share the debug logs for reference ?

The issue is resolved and the fix will be available in upcoming deployment.

Is this been fixed? I still see this issue while trying to upload files to an already created blob container.
azurefilecopyerror

@modikumar It was fixed long ago. From these logs, I assume you have specified "armartifacts/nestedtemplates/automation/scripts" in the Container Name input. That is not the right way for this.

You must specify only "armartifacts" as your Container Name. There is another input called Blob Prefix. Please specify "nestedtemplates/automation/scripts" in the Blob Prefix input.

image

are you sure this was fixed? i'm trying to upload to $web (static hosting preview) using azureblob file copy and i get the following error:

2018-07-20T08:42:40.6765518Z ##[error]Upload to container: '$web' in storage account: 'xxx' with blob prefix: '' failed with error: 'Azure Storage container names can only contain lowercase alpha-numeric characters or hyphens

$web is the automatically generated webroot container for static hosting.

duplicate of https://github.com/Microsoft/vsts-tasks/issues/7611

@markusdresch You should be able to upload to $root container. The fix for $web container will be deployed to all accounts in around a week.

Hi, has the fix for deploying the $web folder been deployed yet..?

@johnhydemtm365 Yes. It deployed a couple of hours ago. Please check if you are able to successfully deploy to $web containers.
If you have issues with this, please post here #7611.

Was this page helpful?
0 / 5 - 0 ratings