question

mayurikadam avatar image
0 Votes"
mayurikadam asked sivasaisambela-2663 commented

how to copy files from azure blob storage into azure devops git repo?

Hi,
I am trying to understand if we can copy from source(ADLSv1 storage) to destination(azure Devops git repo). I came across this article: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-file-copy?view=azure-devops but it does not explain how to set the destination as Devops VM, and then where to run the script.
My understanding on intermediate steps is something like this so far:
1. automate new branch creation in azure devops.
2. use devops api to read from blob storage and copy to the above devops git branch
3. create release to merge above PR everyday 12am.

any pointers/example on how to create and run the script for #1 and #2?

Thanks!


azure-blob-storageazure-dev-tool-integrations
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@mayurikadam Thanks for raising this question! Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.
I am checking on this issue I will get back to you with something concrete update on your query

0 Votes 0 ·

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered sivasaisambela-2663 commented

Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

That task is to copy files TO blob storage, not FROM blob storage.

@mayurikadam Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

What I think I would do is: (but haven’t tried it), please try the below mentioned suggestion and let us know the status.
1) Check out the Git Repo onto the build instance.
2) Create a new branch
3) Download and install AzCopy via the Bash/powershell command line on the build instance
4) Use AzCopy to get the files from blob storage and put them into the right place in the local clone of the Git Repo
5) Commit, check in, pr, etc.

Looking forward for your reply!

Kindly let us know if the above helps or you need further assistance on this issue.


Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @Sumarigo, let me try this and get back to you asap :)

0 Votes 0 ·

Hi @SumanthMarigowda-MSFT
I need help , I have files in blob storage i want to copy all these files to azure devops git repository. Is there any way, Can you please help me on this.
Thanks
Siva S

0 Votes 0 ·