Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unzip file uploaded to Azure Websites

Tags:

azure

I uploaded a zip of my Wordpress site to an Azure website. When I try to FTP in with Winscp it works, but I can't use unzip transfer.zip in the command interface.

How do I unzip my zip file that is now on the server?

like image 725
AlignedDev Avatar asked Sep 23 '14 21:09

AlignedDev


1 Answers

This is possible using the Azure portal's console.

  1. Navigate to portal.azure.com.
  2. Locate your website (Browse->Websites, click on name of the website you uploaded your ZIP file too)
  3. Scroll down until you see the "Console" button. By default, this is on the righthand side about three-quarters of the way to the bottom of the icon list (or "blade" in Azure portal parlance). The icon looks like this:

Azure portal console icon

  1. Navigate to the directory you uploaded your ZIP to using the cd command, just as you would on a typical console or shell window.

  2. Execute unzip archive.zip where archive.zip is the name of your ZIP file.

Note that as of today, the unzip command will not output any progress reports; it runs silently. So, if you have a large archive that takes some time unzip, it may appear as if the command has hung, but in fact it is working and you just need to wait.
Update Sep 2018: The unzip command outputs its progress to the console, e.g.:

Archive:  archive.zip
   creating: archive/
  inflating: archive/203439A9-33EE-480B-9151-80E72F7F2148_PPM01.xml  
   creating: archive/bin/
  inflating: archive/bin/some.dll
like image 154
Josh Avatar answered Sep 20 '22 18:09

Josh