Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to copy files from azure app service to another azure app service?

I need to copy the files from my app service A to my app service B.

To do this I can simple download the A files over FTP to my computer and upload them to B over FTP.

Is there a way to do this ftp download directly from A to B? I tried azure app service console and kudu power shell but I'm getting the following error:

enter image description here

I Know that I can clone the entire app service but that's not what a I want.

Thanks for the suggestions.

like image 683
Mario Corral Avatar asked Nov 01 '25 00:11

Mario Corral


1 Answers

As far as I know, azure kudu don't support ftp tool.

Besides, I don't think there's a way to copy files without downloading and re-uploading, at least I found nothing like this in the List of FTP commands and no client I have seen so far supported something like this.

You need download it firslty and upload it again.

Here is a workaround, you could use some tools to help you copy files.

These tool also will cpoy the files to local(in temp folder) and upload it again.

For example WinSCP FTP client does support the remote copy.

You could just right click the file after login in and select remote copy tag.

If you want to copy files from A to B in kudu, I suggest you could use git tool to help you copy the files(the entire app service).

More details, you could refer to below steps:

1.Generate the git url in your web service A.

(1)You could firstly set your deployment username and password.

enter image description here

(2)Enable local git deploy

enter image description here

enter image description here

(3) Find the web service git url in the overview.

enter image description here

2.In the kudu, locate to the site folder and change add below codes:

Notice: you need delete all the files in the wwwort folder add password behind the user name as below format:

https://{username}:{password}@xxxxxxxxxxxxxxxx.scm.azurewebsites.net:443/xxxxxxxxxxxxxxx.git 

Code:

 git clone {git url} wwwroot

Result:

enter image description here

like image 172
Brando Zhang Avatar answered Nov 04 '25 02:11

Brando Zhang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!