How to deploy to the Virtual Directory in an Azure website

Last month, I shared how to map a sub-domain to an Azure website.   For example, I own the domain http://scottge.net.  The solution would allow me to deploy an website to its sub-domain: http://ask.scottge.net.

This post is about deploying your website to the Virtual Directory of an existing Azure website.  For example, I have the website http://demos.scottge.net.  I want to deploy an Image Gallery website to its Virtual Directory: http://demos.scottge.net/ASPNET-MVC-ImageGallery.

1. Add a Virtual Directory to your Azure website

Go to the Configuration tab of the Azure website, and scroll down to the section ‘virtual applications and directories’.

image

Add a new virtual directory.  I name it as “ASPNET-MVC-ImageGallery” in my case.   Tick the ‘Application’ checkbox and save the changes.

image

2. Deploy the website to the Virtual Directory

First, download the publishing profile of the root website.  In my case, it is the publishing profile for scott-demos (aka. demos.scottge.net).

image

Next, modify the following two locations in the ‘Connection’ setting to append the virtual directory name.

image

Last, click Next, and publish the website.

http://demos.scottge.net/ASPNET-MVC-ImageGallery

image

5 thoughts on “How to deploy to the Virtual Directory in an Azure website

Leave a Reply