Search code examples
azuredownloadcommandcompressionkudu

How to compress/zip files in Microsoft Azure App Service console?


enter image description here

I know about the KUDU service in Microsoft Azure and it works great. However I have got very large data, which is greater than 3GB and it takes very long time to download and then upload to my new server. Is there a way to zip the data on Azure through command line and then do wget to download this data on new server. I have been doing this manually till now but it is taking it forever to download it to my PC first and then uploading to the server through FTP.

I am logged into Microsoft Azure App Service Console. I have tried compress, Compress-Archive and even zip command but nothing works. It says that famous internal and external command not found message.

'compress' is not recognized as an internal or external command, operable program or batch file.

How could I compress these file on Azure console? Earliest help would be appreciated.

Or is there a way to install some compression tool on this server through command line?


Solution

  • While the unzip utility is available, there's no zip tool. One way around that is to upload the command line version of 7-Zip, it's a standalone .EXE file.