Magento is a powerful eCommerce system and in this post, we're going to explore installing Magento Community Edition on an Azure Website.
Login to the portal and create a new empty Azure website with a MySQL database. Note that you will most likely need to scale the website to at least Basic and the free MySQL database from ClearDB will run out of space.
There are several ways you can do this. You can download the Magento full release package zip file to your computer, unzip and upload it but this will take a LOT of time since there are thousands of files to upload.
Another way would be to use the Magento downloader then following the installation instructions.
A third option which I opted in-to, is to use the Kudu Diagnostic Console that comes with every Azure Website to download Magento directly to my website and unzip it.
Open the console by going to http://yourwebsite.scm.azurewebsites.net/DebugConsole
You will be presented with this nice pseudo-console where you can do some neat stuff.
home\site\wwwroot and download Magento by doing a
curl -o magento.zip http://www.magentocommerce.com/downloads/assets/22.214.171.124/magento-126.96.36.199.tar.gz
optionally, also download the sample data
curl -o sampledata.zip http://www.magentocommerce.com/downloads/assets/188.8.131.52/magento-sample-data-184.108.40.206.zip
unzip magento.zip and grab a coffee, this will take a while.
Install the sample data
Extract the sample data
magento-sample-data-220.127.116.11\media folder into the
magento folder then additionally copy the
magento-sample-data-18.104.22.168\skin folder into
cp -r magento-sample-data-22.214.171.124\media magento cp -r magento-sample-data-126.96.36.199\skin magento
Import the sample database data
Connect to your MySQL instance (in my case, this was running on ClearDB) and run the sample script to insert data into the database
mysql --user=yourMysqlUsername --password=yourMysqlPassword -=host=yourMysqlHost yourDatabaseName < magento-sample-data-188.8.131.52\magento_sample_data_for_184.108.40.206.sql
Run Installation Wizard
After completing the above steps, open http://yourwebsite.azurewebsites.net/magento/ in a browser window where you will be presented with the Magento Installation Wizard
Configure database connection
Enable Web.config based URL Rewriting
Using your favorite text editor, create a Web.config file with the content below
then upload it to the root of your website (wwwroot).
You have now installed Magento on Azure Websites!